We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c3ff9c commit c154c8dCopy full SHA for c154c8d
ci/run.bash
@@ -77,5 +77,5 @@ build_test() {
77
if [ -z "$SKIP_TESTS" ]; then
78
target_cargo run --features test -- --dump-testament
79
build_test build
80
- build_test test
+ RUSTUP_CI=1 build_test test
81
fi
src/config.rs
@@ -418,6 +418,12 @@ impl<'a> Cfg<'a> {
418
}
419
420
pub(crate) fn get_self_update_mode(&self) -> Result<SelfUpdateMode> {
421
+ if self.process.var("CI").is_ok() {
422
+ if !self.process.var("RUSTUP_CI").is_ok() {
423
+ return Ok(SelfUpdateMode::Disable);
424
+ }
425
426
+
427
self.settings_file.with(|s| {
428
Ok(match s.auto_self_update {
429
Some(mode) => mode,
0 commit comments