cointop: remove gopath

Closes #47675.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-10 02:02:56 -05:00 committed by Rui Chen
parent 0b50993a8c
commit 4c7d45b939

View file

@ -14,13 +14,8 @@ class Cointop < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
src = buildpath/"src/github.com/miguelmota/cointop"
src.install buildpath.children
src.cd do
system "go", "build", "-o", bin/"cointop"
prefix.install_metafiles
end
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"cointop"
prefix.install_metafiles
end
test do