Skip to content

Commit fb09991

Browse files
committed
add Cargo.lock to CI-rustc allowed list for non-CI env
Signed-off-by: onur-ozkan <[email protected]>
1 parent a32f7c5 commit fb09991

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ pub const RUSTC_IF_UNCHANGED_ALLOWED_PATHS: &[&str] = &[
6969
":!src/rustdoc-json-types",
7070
":!tests",
7171
":!triagebot.toml",
72+
// If not running on CI, this is generally safe because changes to dependencies usually
73+
// involve modifying `Cargo.toml`, which would invalidate the CI-rustc cache on non-allowed paths anyway.
74+
// Also, for non-CI environments, this should be completely safe.
75+
#[cfg(not(ci))]
76+
":!Cargo.lock",
7277
];
7378

7479
/// Global configuration for the entire build and/or bootstrap.

0 commit comments

Comments
 (0)