hey: remove gopath

Closes #47815.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-13 08:39:58 -05:00 committed by Rui Chen
parent fc43c80266
commit fbf37fa191

View file

@ -16,15 +16,8 @@ class Hey < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/rakyll/hey"
dir.install buildpath.children
cd dir do
system "go", "build", "-o", bin/"hey"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"hey"
prefix.install_metafiles
end
test do