-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
loudly tell people when they change Cargo.lock
#107631
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
7d43e0e
to
b83078f
Compare
The pre-push hook does now fail if the lock file needs to be updated. |
I don't think thats sufficient unless "now" means literally now, for example #107603 was submitted in the last 24hrs and has this issue 😅 |
Since #107169 was merged, but they need to install the pre-push hook. |
I think this is fine to land as a stop-gap -- it's not too heavyweight of a ping on a PR, and those who know what they're doing (e.g. actually touching @bors r+ rollup |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
…mpiler-errors Rollup of 8 pull requests Successful merges: - rust-lang#106887 (Make const/fn return params more suggestable) - rust-lang#107519 (Add type alias for raw OS errors) - rust-lang#107551 ( Replace `ConstFnMutClosure` with const closures ) - rust-lang#107595 (Retry opening proc-macro DLLs a few times on Windows.) - rust-lang#107615 (Replace nbsp in all rustdoc code blocks) - rust-lang#107621 (Intern external constraints in new solver) - rust-lang#107631 (loudly tell people when they change `Cargo.lock`) - rust-lang#107632 (Clarifying that .map() returns None if None.) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
It keeps happening that people accidentally commit changes to
Cargo.lock
and then have to be told by a reviewer to undo this. I've also seen cases where PRs are merged that accidentally changedCargo.lock
during a rebase.. I figure that purposeful changes toCargo.lock
are likely rarer than these accidental ones?