certstrap: remove gopath

Closes #47643.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-09 00:24:36 -05:00 committed by Rui Chen
parent 0cf130d4ff
commit c804474d21

View file

@ -15,15 +15,8 @@ class Certstrap < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/square/certstrap"
dir.install buildpath.children
cd dir do
system "go", "build", "-mod", "vendor", "-ldflags", "-X main.version=#{version}", "-o", bin/"certstrap"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w -X main.version=#{version}", "-trimpath", "-o", bin/"certstrap"
prefix.install_metafiles
end
test do