We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1c21ab commit 855b547Copy full SHA for 855b547
Formula/s/step.rb
@@ -24,16 +24,13 @@ class Step < Formula
24
end
25
26
def install
27
- ENV["VERSION"] = version.to_s
28
- ENV["CGO_OVERRIDE"] = "CGO_ENABLED=1"
29
- system "make", "build"
+ ENV["CGO_OVERRIDE"] = "CGO_ENABLED=1" if ENV["CGO_ENABLED"] != "0"
+ system "make", "build", "VERSION=#{version}"
30
bin.install "bin/step" => "step"
31
generate_completions_from_executable(bin/"step", "completion")
32
33
resource("certificates").stage do |r|
34
- ENV["VERSION"] = r.version.to_s
35
36
+ system "make", "build", "VERSION=#{r.version}"
37
bin.install "bin/step-ca" => "step-ca"
38
39
0 commit comments