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

Modify the default settings so that if patches cannot be applied the composer install step fails. #343

Conversation

vermario
Copy link

Hi! I propose this small change:

As found on the readme of the "composer-patches" package, the default behaviour is that a patch cannot be applied the build is allowed to continue.
In my opinion that is not a useful behaviour to have as the default because unpatched modules and core might end up in production, so I propose to set this setting to "TRUE" so that if patching fails the build is not allowed to go through.
People would still be able to remove that to get the old behaviour if desired.

More info on the readme of the composer-patches package at: https://github.com/cweagans/composer-patches#error-handling

…composer install step fails.

As found on the readme of the "composer-patches" package, the default behaviour is that a patch cannot be applied the build is allowed to continue.
In my opinion that is not a useful behaviour to have because unpatched modules and core might end up in production, so I propose to set this setting to "TRUE" so that if patching fails the build is not allowed to go through.
People would still be able to remove that to get the old behaviour if desired.

More info on the readme of the composer-patches package at: https://github.com/cweagans/composer-patches#error-handling
@pfrenssen
Copy link
Collaborator

This would be very nice to have. If we set this option this will make sure that people that are not aware of this option will not accidentally generate invalid builds if a patch cannot be downloaded for some reason.

In the next major version of composer-patches this option will be set by default. Ref. cweagans/composer-patches#209

@pfrenssen
Copy link
Collaborator

@vermario is it possible for you to update the PR and solve the merge conflict? The failure that happened seems to be unrelated.

@AlexSkrypnyk
Copy link
Collaborator

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

Successfully merging this pull request may close these issues.

None yet

3 participants