Closed andrewandante closed 4 years ago
vendor-plugin will have the same problem.
Did 2 PRs to fix vendor-plugin and recipe-plugin.
I used this composer.json file to test it. For some reason, composer2 didn't want to run an update because it didn't seem to be picking the branch aliases. This might be a bug with the way composer2 picks up the aliases, or maybe something has changed there.
But otherwise it seemed to pick the plugins just fine and let them do their thing.
{
"name": "silverstripe/installer",
"type": "silverstripe-recipe",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=7.1.0",
"silverstripe/recipe-plugin": "dev-pulls/1/support-composer-ii as 1.4.0",
"silverstripe/vendor-plugin": "dev-pulls/1/support-composer-ii as 1.4.0",
"silverstripe/recipe-cms": "4.5.x-dev",
"silverstripe-themes/simple": "~3.2.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
},
"config": {
"process-timeout": 600
},
"prefer-stable": true,
"minimum-stability": "dev",
"repositories": [
{
"type": "vcs",
"url": "git@github.com:open-sausages/recipe-plugin.git"
},
{
"type": "vcs",
"url": "git@github.com:open-sausages/vendor-plugin.git"
}
]
}
I'm reducing the impact of this one to "high". Composer 2 hasn't even hit alpha stage yet.
Looks like there was a recent announcement to release v2.0 before the end of October.
Composer 2.0 has been released. Could Maxime's PRs be merged now?
Trying to install using Composer 2 fails as the plugin version needs to be updated to
2.0
- you can see the requirements here: https://github.com/composer/composer/blob/master/UPGRADE-2.0.md#user-content-for-integrators-and-plugin-authorsOutput from user on Slack:
Shouldn't be too difficult of a change but will need to be done before Composer 2 is widely adopted
Pulls request