From 250f1fbac7ec7ac163d75c74fa1b9bbe8bd196be Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 25 Jun 2024 10:38:06 +0200 Subject: [PATCH] Disable automatic self updates in CI environments --- src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.rs b/src/config.rs index fcaed93b3ca..1647ac849be 100644 --- a/src/config.rs +++ b/src/config.rs @@ -418,6 +418,10 @@ impl<'a> Cfg<'a> { } pub(crate) fn get_self_update_mode(&self) -> Result { + if self.process.var("CI").is_ok() { + return Ok(SelfUpdateMode::Disable); + } + self.settings_file.with(|s| { Ok(match s.auto_self_update { Some(mode) => mode,