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

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

Closed
weihanglo opened this issue Apr 18, 2023 · 2 comments · Fixed by #11994
Closed

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

weihanglo opened this issue Apr 18, 2023 · 2 comments · Fixed by #11994
Labels
C-enhancement Category: enhancement

Comments

@weihanglo
Copy link
Member

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

@weihanglo weihanglo added the C-enhancement Category: enhancement label Apr 18, 2023
@epage
Copy link
Contributor

epage commented Apr 18, 2023

We may add a new CI job or step to detect if Cargo.lock changes and git status is dirty after a build.

Can't you just do a CI job with cargo check --locked as the first step?

@weihanglo
Copy link
Member Author

Can't you just do a CI job with cargo check --locked as the first step?

I believe yes! That will be a new “CI step”.

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

Successfully merging a pull request may close this issue.

2 participants