diff --git a/Formula/certstrap.rb b/Formula/certstrap.rb index 93d5e6bf0856..4883ee400d1d 100644 --- a/Formula/certstrap.rb +++ b/Formula/certstrap.rb @@ -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