We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ci_rustc_if_unchanged_logic
1 parent efea989 commit 1452b11Copy full SHA for 1452b11
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 mut paths = vec!["compiler"];
265
+
266
+ if !build_helper::ci::CiEnv::is_ci() {
267
+ paths.push("library");
268
+ }
269
270
let has_changes =
- config.last_modified_commit(&["compiler", "library"], "download-rustc", true).is_none();
271
+ config.last_modified_commit(&paths, "download-rustc", true).is_none();
272
273
assert!(
274
!has_changes,
0 commit comments