HomebrewFormula: drop GOPATH and set -trimpath

This commit is contained in:
Filippo Valsorda
2019-12-30 00:26:55 +01:00
parent 80c6b4edd9
commit 0da94651f3

View File

@@ -13,9 +13,8 @@ class Age < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = HOMEBREW_CACHE/"go_cache"
system "mkdir", bin
system "go", "build", "-o", bin, "filippo.io/age/cmd/..."
mkdir bin
system "go", "build", "-trimpath", "-o", bin, "filippo.io/age/cmd/..."
prefix.install_metafiles
end
end