-
Notifications
You must be signed in to change notification settings - Fork 36
(Optionally) run composer validate as part of the installation #265
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
My feature title
I'd like to make sure that my composer.lock is in sync with composer.json in CI.
Background/problem
While resolving a merge-conflict with two PRs changing composer.json, resulting in conflicting content-hash in composer.lock, the correct content-hash is neither of the original hashes. This lead to an an accidental bad merge, which composer reported as a warning in CI:
However this warning does not lead to a failed build and thus was missed.
Proposal/solution
composer validate will, amongst other checks, validate that the content-hash in composer.lock matches composer.json, ensuring that the two files are in sync. I'd like this command being run to make the CI fail in those cases.
Alternatives
None.
Additional context
None.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
