Skip to content

Commit e6d5065

Browse files
committed
feat: allow downgrades while installing valgrind-codspeed
1 parent 7f40f24 commit e6d5065

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/run/runner/valgrind/setup.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ async fn install_valgrind(system_info: &SystemInfo) -> Result<()> {
9898
download_file(&Url::parse(valgrind_deb_url.as_str()).unwrap(), &deb_path).await?;
9999

100100
run_with_sudo(&["apt-get", "update"])?;
101-
run_with_sudo(&["apt-get", "install", "-y", deb_path.to_str().unwrap()])?;
101+
run_with_sudo(&[
102+
"apt-get",
103+
"install",
104+
"--allow-downgrades",
105+
"-y",
106+
deb_path.to_str().unwrap(),
107+
])?;
102108

103109
Ok(())
104110
}

0 commit comments

Comments
 (0)