Skip to content

Commit 250f1fb

Browse files
committed
Disable automatic self updates in CI environments
1 parent 4c3ff9c commit 250f1fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@ impl<'a> Cfg<'a> {
418418
}
419419

420420
pub(crate) fn get_self_update_mode(&self) -> Result<SelfUpdateMode> {
421+
if self.process.var("CI").is_ok() {
422+
return Ok(SelfUpdateMode::Disable);
423+
}
424+
421425
self.settings_file.with(|s| {
422426
Ok(match s.auto_self_update {
423427
Some(mode) => mode,

0 commit comments

Comments
 (0)