cointop: remove gopath
Closes #47675. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
0b50993a8c
commit
4c7d45b939
1 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue