Skip to content

(Optionally) run composer validate as part of the installation #265

@TimWolla

Description

@TimWolla

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:

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions