Skip to content

Commit d180b11

Browse files
committed
conditionally append exe suffix to SHA512 URL for static binaries
1 parent bdf2558 commit d180b11

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

clang-installer/src/downloader/static_dist.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ impl StaticDistDownloader {
6565
/// `MAX_CLANG_TOOLS_VERSION` environment variables (inclusive) at compile time.
6666
fn find_suitable_version(req_ver: &VersionReq) -> Option<Version> {
6767
let clang_tools_versions: RangeInclusive<u8> = Self::get_major_version_range();
68-
println!("Available clang tools versions: {clang_tools_versions:?}");
6968
clang_tools_versions
7069
.map(|v| Version::new(v as u64, 0, 0))
7170
.rev()
@@ -161,7 +160,7 @@ impl StaticDistDownloader {
161160
sha512_cache_path.to_string_lossy()
162161
);
163162
} else {
164-
let sha512_url = Url::parse(format!("{base_url}.sha512sum").as_str())?;
163+
let sha512_url = Url::parse(format!("{base_url}{suffix}.sha512sum").as_str())?;
165164
log::info!(
166165
"Downloading SHA512 checksum for {tool} version {ver_str} from {sha512_url}"
167166
);

0 commit comments

Comments
 (0)