gotags: remove gopath

Closes #47806.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-13 03:09:22 -05:00 committed by Rui Chen
parent 66fb70902b
commit 59cb503230

View file

@ -18,10 +18,8 @@ class Gotags < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
system "go", "build", "-o", "gotags"
bin.install "gotags"
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"gotags"
prefix.install_metafiles
end
test do