We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cea707d commit 3743cdbCopy full SHA for 3743cdb
src/bootstrap/src/core/sanity.rs
@@ -382,7 +382,13 @@ $ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
382
cmd_finder.must_have(s);
383
}
384
385
- warn_old_master_branch(&build.config.git_config(), &build.config.src)
386
- .map_err(|e| e.to_string())
387
- .unwrap();
+ // this warning is useless in CI,
+ // and CI probably won't have the right branches anyway.
+ if !build_helper::ci::CiEnv::is_ci() {
388
+ if let Err(e) = warn_old_master_branch(&build.config.git_config(), &build.config.src)
389
+ .map_err(|e| e.to_string())
390
+ {
391
+ eprintln!("unable to check if upstream branch is old: {e}");
392
+ }
393
394
0 commit comments