Skip to content

Check if a pull request forgot to commit Cargo.lock in CI #11992

Closed
@weihanglo

Description

@weihanglo

Problem

Starting from #11851, this project commits Cargo.lock into git history. However, CI has yet got a good process to detect the error when a change of Cargo.lock should be committed but not. This kind of failure is now caught by docs job, which effectively runs ci/validate-man.sh.

For example, CI failures below detect Cargo.lock changed and was not committed.

Proposed Solution

We shouldn't rely on ci/validate-man.sh, as it serves for a different purpose. We may add a new CI job or step to detect if Cargo.lock changes and git status is dirty after a build.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions