Skip to content

Commit 855b547

Browse files
committed
step: fix build on arm64 linux
1 parent b1c21ab commit 855b547

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Formula/s/step.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ class Step < Formula
2424
end
2525

2626
def install
27-
ENV["VERSION"] = version.to_s
28-
ENV["CGO_OVERRIDE"] = "CGO_ENABLED=1"
29-
system "make", "build"
27+
ENV["CGO_OVERRIDE"] = "CGO_ENABLED=1" if ENV["CGO_ENABLED"] != "0"
28+
system "make", "build", "VERSION=#{version}"
3029
bin.install "bin/step" => "step"
3130
generate_completions_from_executable(bin/"step", "completion")
3231

3332
resource("certificates").stage do |r|
34-
ENV["VERSION"] = r.version.to_s
35-
ENV["CGO_OVERRIDE"] = "CGO_ENABLED=1"
36-
system "make", "build"
33+
system "make", "build", "VERSION=#{r.version}"
3734
bin.install "bin/step-ca" => "step-ca"
3835
end
3936
end

0 commit comments

Comments
 (0)