drainpipe icon indicating copy to clipboard operation
drainpipe copied to clipboard

wikimedia/composer-merge-plugin conflicts with drainpipe

Open geekygnr opened this issue 11 months ago • 6 comments

Installing drainpipe when wikimedia/composer-merge-plugin is enabled errors can throw the error: Unable to add newly converted phar "/mnt/ddev-global-cache/composer/files/lullabot/drainpipe/bin/task/3.28.0/task_linux_amd64.tar" to the list of phars, a phar with that name already exists

If the error does not show up right away it does consistently appear when running composer install after removing the vendor directory.

I recommend solving this by adding wikimedia/composer-merge-plugin as a conflict in the composer.json

geekygnr avatar Apr 02 '25 19:04 geekygnr

If you double up the composer install commands, does that help as a workaround??

YesCT avatar Apr 03 '25 14:04 YesCT

If you double up the composer install commands, does that help as a workaround??

If I run compose twice it doesn't error out the second time.

geekygnr avatar Apr 03 '25 14:04 geekygnr

👋 Is this an old project? 3.28.0 should be newer. If the project has drainpipe from before this PR in September, you may get errors on existing checkouts until things are upgraded.

https://github.com/Lullabot/drainpipe/pull/679

deviantintegral avatar Apr 03 '25 17:04 deviantintegral

This is an old project I am upgrading the devops on. It is running drainpipe 3.12.1

I don't see a version 3.28.0 for drainpipe in the tags or packagist.

geekygnr avatar Apr 03 '25 18:04 geekygnr

I was referring to the task version, not drainpipe. If you just updated to 3.12.1 now, that would explain the double-composer-install issue.

deviantintegral avatar Apr 03 '25 18:04 deviantintegral

This came from a fresh install. Drainpipe wasn't a part of the project prior to my work.

geekygnr avatar Apr 03 '25 18:04 geekygnr

Closing. We can re-open if this comes up again.

mrdavidburns avatar Oct 10 '25 02:10 mrdavidburns