Don't show Cargo.lock warning if Cargo.toml has been modified #107914
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-infra
Relevant to the infrastructure team, which will review and decide on the PR/issue.
Rustbot currently posts a warning on any PR that modifies
Cargo.lock
. this is helpful in cases whereCargo.lock
was modified accidentally, for example if cargo ran with an old version of a submodule checked out. However, many PRs changeCargo.lock
intentionally and shouldn't get the warning. As a heuristic, we can use "did anyCargo.toml
change": if so, it's very likely the change was intentional.@compiler-errors says this may be tricky since triage bot currently doesn't support conditional pings on files.
cc @BoxyUwU, I think you added this warning originally.
Originally posted by @rustbot in #103993 (comment)
The text was updated successfully, but these errors were encountered: