You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run just composer update --lock to update my root composer.lock's content-hash, the post-update-cmd is invoked and basically updates all vendor-bin dependencies, not just their lock files.
// composer.json (extract)"scripts": {"bin": "echo 'bin not installed'","post-install-cmd": ["@composer bin all install --ansi"],"post-update-cmd": ["@composer bin all update --ansi"]}
This doesn't seem right, so either (a) Composer shouldn't run the post-update-cmd on update --lock, or (b) the Composer-bin-plugin should/could detect this somehow and only run update --lock as well (maybe Composer passes the parameter in an ENV variable or so?).
Obviously, a workaround for us would be to remove the post-update-cmd, because we can call bin all update manually if we need to.
The text was updated successfully, but these errors were encountered:
When I run just
composer update --lock
to update my rootcomposer.lock
'scontent-hash
, thepost-update-cmd
is invoked and basically updates allvendor-bin
dependencies, not just their lock files.This doesn't seem right, so either (a) Composer shouldn't run the
post-update-cmd
onupdate --lock
, or (b) the Composer-bin-plugin should/could detect this somehow and only runupdate --lock
as well (maybe Composer passes the parameter in an ENV variable or so?).Obviously, a workaround for us would be to remove the
post-update-cmd
, because we can callbin all update
manually if we need to.The text was updated successfully, but these errors were encountered: