triangle: deprecate gopath

Closes #53749.

Signed-off-by: chenrui <chenrui333@gmail.com>
master
Rui Chen 2020-04-25 19:32:40 -04:00 committed by chenrui
parent 96f013d480
commit dafb2239bc
1 changed files with 2 additions and 10 deletions

View File

@ -14,16 +14,8 @@ class Triangle < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GOBIN"] = bin
dir = buildpath/"src/github.com/esimov/triangle"
dir.install buildpath.children
cd dir/"cmd/triangle" do
system "go", "install"
end
system "go", "build", "-mod=vendor", "-o", "#{bin}/triangle", "./cmd/triangle"
prefix.install_metafiles
end
test do