Skip to content

Commit

Permalink
fix: erroneous architecture for darwin (macos)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryango committed Nov 28, 2024
1 parent bd2e35b commit 0a7d08b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,14 @@ impl HydraCheckCli {
}
return self;
}
let arch = format!("{}-{}", ARCH, OS);
let arch = format!(
"{}-{}",
ARCH,
match OS {
"macos" => "darwin", // hack to produce e.g. `aarch64-darwin`
x => x,
}
);
debug!("assuming --arch '{arch}'");
warn_if_unknown(&arch);
Self {
Expand Down

0 comments on commit 0a7d08b

Please sign in to comment.