Skip to content

Commit d60c952

Browse files
authored
feat: add support for 0.8.31-pre (#175)
ref foundry-rs/foundry#12591 note: the official ones are missing the -pre release from the release list for some reason, might get updated
1 parent 1ccb474 commit d60c952

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

crates/svm-rs/src/install.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,4 +487,21 @@ mod tests {
487487
.contains("0.7.1")
488488
);
489489
}
490+
491+
#[cfg(feature = "blocking")]
492+
#[serial_test::serial]
493+
#[test]
494+
#[ignore]
495+
fn blocking_test_0_8_31_pre() {
496+
let version = "0.8.31-pre.1".parse().unwrap();
497+
blocking_install(&version).unwrap();
498+
let solc_path = version_binary(version.to_string().as_str());
499+
let output = Command::new(solc_path).arg("--version").output().unwrap();
500+
501+
assert!(
502+
String::from_utf8_lossy(&output.stdout)
503+
.as_ref()
504+
.contains(&version.to_string())
505+
);
506+
}
490507
}

crates/svm-rs/src/releases.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ static OLD_SOLC_RELEASES: LazyLock<Releases> = LazyLock::new(|| {
3030

3131
const LINUX_AARCH64_MIN: Version = Version::new(0, 5, 0);
3232

33-
static LINUX_AARCH64_URL_PREFIX: &str = "https://raw.githubusercontent.com/nikitastupin/solc/0045084c85d8c159de03442a37d2018d52374445/linux/aarch64";
33+
static LINUX_AARCH64_URL_PREFIX: &str = "https://raw.githubusercontent.com/nikitastupin/solc/2287d4326237172acf91ce42fd7ec18a67b7f512/linux/aarch64";
3434

35-
static LINUX_AARCH64_RELEASES_URL: &str = "https://raw.githubusercontent.com/nikitastupin/solc/0045084c85d8c159de03442a37d2018d52374445/linux/aarch64/list.json";
35+
static LINUX_AARCH64_RELEASES_URL: &str = "https://raw.githubusercontent.com/nikitastupin/solc/2287d4326237172acf91ce42fd7ec18a67b7f512/linux/aarch64/list.json";
3636

3737
// NOTE: Since version 0.8.24, universal macosx releases are available: https://binaries.soliditylang.org/macosx-amd64/list.json
3838
const MACOS_AARCH64_NATIVE: Version = Version::new(0, 8, 5);
@@ -353,7 +353,7 @@ mod tests {
353353
assert_eq!(
354354
artifact_url(Platform::LinuxAarch64, &version, artifact).unwrap(),
355355
Url::parse(&format!(
356-
"https://raw.githubusercontent.com/nikitastupin/solc/0045084c85d8c159de03442a37d2018d52374445/linux/aarch64/{artifact}"
356+
"https://raw.githubusercontent.com/nikitastupin/solc/2287d4326237172acf91ce42fd7ec18a67b7f512/linux/aarch64/{artifact}"
357357
))
358358
.unwrap(),
359359
)

0 commit comments

Comments
 (0)