-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downgrading instead of Upgrading #41
Comments
@WebVPF how are you defining the requirement for Winter.Blog in your composer.json? |
@LukeTowers Winter.User and not Winter.Blog {
"name": "winter/wn-user-plugin",
"type": "winter-plugin",
"description": "User plugin for Winter CMS",
"homepage": "https://github.com/wintercms/wn-user-plugin",
"keywords": ["winter cms", "winter", "plugin", "user", "authentication"],
"license": "MIT",
"authors": [
{
"name": "Alexey Bobkov",
"email": "aleksey.bobkov@gmail.com",
"role": "Original Author"
},
{
"name": "Samuel Georges",
"email": "daftspunky@gmail.com",
"role": "Original Author"
},
{
"name": "Winter CMS Maintainers",
"homepage": "https://wintercms.com",
"role": "Maintainer"
}
],
"support": {
"issues": "https://github.com/wintercms/wn-user-plugin/issues",
"discord": "https://discord.gg/D5MFSPH6Ux",
"source": "https://github.com/wintercms/wn-user-plugin"
},
"require": {
"php": ">=7.2",
"composer/installers": "~1.0"
},
"replace": {
"rainlab/user-plugin": "~1.5"
},
"extra": {
"installer-name": "user"
}
}
I didn't touch this file. |
I meant in your main composer.json file for your project, what does it say for the requirement on winter/wn-user-plugin? |
{
"name": "wintercms/winter",
"description": "Free, open-source, self-hosted CMS platform based on the Laravel PHP Framework. Originally known as October CMS.",
"homepage": "https://wintercms.com",
"type": "project",
"keywords": ["winter", "cms", "wintercms", "laravel", "cmf"],
"license": "MIT",
"authors": [
{
"name": "Alexey Bobkov",
"email": "aleksey.bobkov@gmail.com",
"role": "Original Author"
},
{
"name": "Samuel Georges",
"email": "daftspunky@gmail.com",
"role": "Original Author"
},
{
"name": "Luke Towers",
"email": "wintercms@luketowers.ca",
"role": "Lead Maintainer"
}
],
"support": {
"issues": "https://github.com/wintercms/winter/issues",
"docs": "https://wintercms.github.io/docs/",
"discord": "https://discord.gg/D5MFSPH6Ux",
"source": "https://github.com/wintercms/winter"
},
"require": {
"php": "^8.0.2",
"winter/storm": "~1.2.0",
"winter/wn-system-module": "~1.2.0",
"winter/wn-backend-module": "~1.2.0",
"winter/wn-cms-module": "~1.2.0",
"laravel/framework": "^9.1",
"wikimedia/composer-merge-plugin": "~2.0.1",
"webvpf/wn-darkbackend-plugin": "^1.1",
"webvpf/wn-dashboardwidgets-plugin": "^1.1",
"webvpf/wn-robots-plugin": "^1.0",
"webvpf/wn-share-plugin": "^1.1",
"webvpf/wn-simpledocs-plugin": "^1.0",
"winter/wn-user-plugin": "^2.0",
"winter/wn-notes-plugin": "^1.0",
"skripteria/wn-site-search-plugin": "^2.0",
"winter/wn-googleanalytics-plugin": "^3.0"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Flynsarmy/wn-sociallogin-plugin"
}
],
"require-dev": {
"phpunit/phpunit": "^9.5.8",
"mockery/mockery": "^1.4.4",
"fakerphp/faker": "^1.9.2",
"squizlabs/php_codesniffer": "^3.2",
"php-parallel-lint/php-parallel-lint": "^1.0",
"dms/phpunit-arraysubset-asserts": "^0.1.0|^0.2.1",
"flynsarmy/wn-sociallogin-plugin": "dev-master"
},
"scripts": {
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-update-cmd": [
"@php artisan winter:version",
"@php artisan package:discover"
],
"test": [
"phpunit --stop-on-failure"
],
"lint": [
"parallel-lint --exclude vendor --exclude storage --exclude modules/system/tests/fixtures/plugins/testvendor/goto/Plugin.php ."
],
"sniff": [
"phpcs --colors -nq --report=\"full\" --extensions=\"php\""
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"merge-plugin": {
"include": [
"plugins/*/*/composer.json"
],
"recurse": true,
"replace": false,
"merge-dev": false
}
},
"config": {
"allow-plugins": {
"composer/installers": true,
"wikimedia/composer-merge-plugin": true
}
}
}
|
The only scenario where that would occur normally would be if another plugin had a dependency on User plugin being |
I could not install the plugin, it gave the following error:
It helped to remove the following line from the in "replace": {
"rainlab/user-plugin": "~1.5"
}, |
@WebVPF in your root composer.json, you should use the following: Add this at the end of the "require" section: "wikimedia/composer-merge-plugin": "dev-master" And add this new section at the end of the composer.json file: "extra": {
"merge-plugin": {
"include": [
"plugins/*/*/composer.json"
],
"recurse": true,
"replace": false,
"merge-replace": false,
"merge-dev": false
}
} |
@WebVPF you can also just change the include configuration of that section to only include the plugins that you actually want included by the merge plugin; i.e. your own custom plugins. There's a reason we switched away from including every plugin (via |
I start the update
Result
Then
Result
Then
Result
Then
Result
So it repeats endlessly.
This came up a few months ago.
The text was updated successfully, but these errors were encountered: