Composer version is too low to get the 'symfony/flex' lib working
@waliMSFT is already working on this.
Since Jan 24, 2023.
- Dominant language
- C#
- Stars
- 881
- Forks
- 195
- Avg merge
- 20h 13m
- Merged PRs (30d)
- 13
Description
Bug Report
-
At what date and time did you most recently experience the problem?
20/01/2023 -
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
Azure Web Apps -
If your repo is publicly available please share its URL:
No -
What happened?
When runningcomposer install --ignore-platform-reqs --no-interaction, if you set "symfony/flex" lib to version 2+, it will failed with error messageThe "symfony/flex" plugin was skipped because it requires a Plugin API version ("^2.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
However, if you set "symfony/flex" lib to version 1+, it is success.
-
What did you expect or want to happen?
Make the deployment success when using the latest version of "symfony/flex" -
How can we reproduce it?
In composer.json file, change "symfony/flex": "^1" to "symfony/flex": "^2" -
Do you have log output? Please include between the backticks:
The "symfony/flex" plugin was skipped because it requires a Plugin API version ("^2.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.