- Issue created by @t_d_d
- πΊπΈUnited States jrockowitz Brooklyn, NY
You might have to remove the composer.libraries.json before updating and add back the reference.
This seems approximately (maybe) https://github.com/wikimedia/composer-merge-plugin/issues/236. I don't know if anything can be done about this on the Webform side.
It really seems like something along #3:
composer-merge-plugin is meant for projects that cannot ship their composer.lock...
Anyway, I have just deployed on another machine and manually removing old webform module (folder) before
composer install
was enough for it to run smoothly. As it seems impossible to fix this, maybe we should document it on https://www.drupal.org/node/3003140 β like this (unless there is way to run composer install without validation of lock):Troubleshooting
Failing
composer install
after webform updateIf your
composer install
fails after webform update with libraries missing in lock file, e.g.:Verifying lock file contents can be installed on current platform. - Required package "xxx/yyy" is not present in the lock file.
You may need to remove old webform module (just the folder) from the target machine before running
composer install
. See https://www.drupal.org/project/webform/issues/3398375 π composer install - library is not present in the lock file Active .- π©πͺGermany johnnny83
I had the same problem with exactly the same libraries when running composer install (strangely only on of two Drupal installation which I thought were duplicates). Deleting composer.libraries.json and copying it back after composer install solved the problem for me.
- πΊπΈUnited States jrockowitz Brooklyn, NY
Painfully, there is nothing we can do because we can't tweak how composer and composer merge works.
We might have to document the issue and process for updating the webform module from 6.1.x to 6.2.x on the project page and maybe the release notes.
I am open to suggestions on what we should document.
- Status changed to Closed: won't fix
9 months ago 10:39am 5 April 2024 - πΊπΈUnited States jrockowitz Brooklyn, NY
I have learned that composer merge does NOT work with Pantheon. I don't think there is any workaround.
You will have to manually copy the composer.libraries.json information into your main composer.json.