Skip to content

Commit 16d93dd

Browse files
committed
fix: update architecture handling and add missing sha256 for new macOS versions
1 parent fdc7edd commit 16d93dd

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

kubectl-argo-rollouts.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,25 @@ class KubectlArgoRollouts < Formula
55
baseurl = "https://github.com/argoproj/argo-rollouts/releases/download"
66
version "v1.8.3"
77

8-
if OS.mac?
8+
if OS.mac? and Hardware::CPU.arm?
99
kernel = "darwin"
10+
arch = "arm64"
11+
sha256 "961aec4e25bbd587479af0c25fe3e5c2509e451c1b9ec026fa5eb8d57c9c9fe7"
12+
elsif OS.mac? and Hardware::CPU.intel?
13+
kernel = "darwin"
14+
arch = "amd64"
1015
sha256 "78562a0f9ce18d2253216c0114a5fd90a597655dacf0bad2a6942c2c9e5a5109"
11-
elsif OS.linux?
16+
elsif OS.linux? and Hardware::CPU.intel?
1217
kernel = "linux"
18+
arch = "amd64"
1319
sha256 "6f60f3608ffc1e6b59c05ffc979d80ad1acd886d7fcbffb1e8e0c50291674373"
20+
elsif OS.linux? and Hardware::CPU.arm?
21+
kernel = "linux"
22+
arch = "arm64"
23+
sha256 "dabe066c926d1bb816a3ba404e5f9221e97df54100f7619cddf073275ef5bd4e"
1424
end
1525

16-
@@bin_name = "kubectl-argo-rollouts-" + kernel + "-amd64"
26+
@@bin_name = "kubectl-argo-rollouts-" + kernel + "-" + arch
1727
url baseurl + "/v1.8.3/" + @@bin_name
1828

1929
def install

0 commit comments

Comments
 (0)