Skip to content

Commit 5b6e6eb

Browse files
authored
fix(tests): always try installing pinned solc (#217)
should fix ci failure https://github.com/foundry-rs/compilers/actions/runs/11889326739/job/33125668737
1 parent d0fb6c3 commit 5b6e6eb

File tree

1 file changed

+2
-3
lines changed
  • crates/compilers/src/project_util

1 file changed

+2
-3
lines changed

crates/compilers/src/project_util/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ impl<T: ArtifactOutput + Default> TempProject<MultiCompiler, T> {
5757
pub fn set_solc(&mut self, solc: &str) -> &mut Self {
5858
use crate::solc::{Solc, SolcCompiler};
5959

60-
self.inner.compiler.solc = Some(SolcCompiler::Specific(
61-
Solc::find_svm_installed_version(&solc.parse().unwrap()).unwrap().unwrap(),
62-
));
60+
self.inner.compiler.solc =
61+
Some(SolcCompiler::Specific(Solc::find_or_install(&solc.parse().unwrap()).unwrap()));
6362

6463
self
6564
}

0 commit comments

Comments
 (0)