We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ci_rustc_if_unchanged_logic
1 parent efea989 commit e441c97Copy full SHA for e441c97
src/bootstrap/src/core/builder/tests.rs
@@ -261,8 +261,14 @@ fn ci_rustc_if_unchanged_logic() {
261
// Make sure "if-unchanged" logic doesn't try to use CI rustc while there are changes
262
// in compiler and/or library.
263
if config.download_rustc_commit.is_some() {
264
- let has_changes =
265
- config.last_modified_commit(&["compiler", "library"], "download-rustc", true).is_none();
+ let mut paths = vec!["compiler"];
+
266
+ // Handle library tree the same way as in `Config::download_ci_rustc_commit`.
267
+ if !build_helper::ci::CiEnv::is_ci() {
268
+ paths.push("library");
269
+ }
270
271
+ let has_changes = config.last_modified_commit(&paths, "download-rustc", true).is_none();
272
273
assert!(
274
!has_changes,
0 commit comments