From 0a7d08b2c5e5cb80eba7179d0bbeacea8430c3e1 Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Thu, 28 Nov 2024 13:46:16 +0800 Subject: [PATCH] fix: erroneous architecture for darwin (macos) --- src/args.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/args.rs b/src/args.rs index ec2df27..57fe067 100644 --- a/src/args.rs +++ b/src/args.rs @@ -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 {