Composer plaform schema gets overwritten with old version #10784
Labels
L: github:actions
GitHub Actions
L: php:composer
Issues and code for Composer
T: bug 🐞
Something isn't working
Is there an existing issue for this?
Package ecosystem
composer
Package manager version
2.8.1
Language version
PHP
Manifest location and content before the Dependabot update
In project root
dependabot.yml content
Updated dependency
All
What you expected to see, versus what you actually saw
The plaform section of composer.lock is being changed to the older schema (empty array) and not an object.
I would not expect this section to be updated.
This was noticed as we have a Github action that creates a build using Acquia BLT, which then errors with a dirty repository warning related to this change in composer.lock.
Current workaround is to checkout the dependabot PRs and run composer update --lock and push, which restores the platform schemas.
Native package manager behavior
Since composer 2.8, the platform and platform-dev sections are objects.
composer/composer#12123
Images of the diff or a link to the PR, issue, or logs
Smallest manifest that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: