hey: remove gopath
Closes #47815. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
fc43c80266
commit
fbf37fa191
1 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue