Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate exit code when running post-install hook #244

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

harnash
Copy link

@harnash harnash commented Aug 26, 2022

This is related to #180.

We have noticed that when post-install hook is executed composer-merge-plugin executed the whole process again and when that fails it just logs an error and does not propagate exit status code to the parent process causing composer to return exit status code 0 even when the process clearly failed.
This change should propagate exit status code and will help preventing broken builds in CI/CD environments when tooling reiles on exit status codes to determine if the command finished successfully or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant