Skip to content

Commit bbf07d4

Browse files
authored
Merge branch 'main' into releases
2 parents 8e26b4c + 5126479 commit bbf07d4

File tree

2 files changed

+7
-2
lines changed
  • crate_universe/tools

2 files changed

+7
-2
lines changed

crate_universe/tools/cross_installer/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ fn main() {
8686
let workspace_root = PathBuf::from(
8787
env::var("BUILD_WORKSPACE_DIRECTORY")
8888
.expect("cross_installer is designed to run under Bazel"),
89-
);
89+
)
90+
.join("crate_universe");
9091

9192
// Do some setup
9293
prepare_workspace(&workspace_root);

crate_universe/tools/urls_generator/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ fn locate_artifacts(artifacts_dir: &Path, url_prefix: &str) -> Vec<Artifact> {
7373
.map(|f_entry| {
7474
let f_path = f_entry.path();
7575
let stem = f_path.file_stem().unwrap().to_string_lossy();
76+
let extension = f_path
77+
.extension()
78+
.map(|ext| format!(".{}", ext.to_string_lossy()))
79+
.unwrap_or_default();
7680
Artifact {
77-
url: format!("{}/{}-{}", url_prefix, stem, triple),
81+
url: format!("{}/{}-{}{}", url_prefix, stem, triple, extension),
7882
triple: triple.to_string(),
7983
sha256: calculate_sha256(&f_entry.path()),
8084
}

0 commit comments

Comments
 (0)