From 57124c2825d14541b5e15db45edae54dde894b31 Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Thu, 12 Dec 2019 10:10:57 -0500 Subject: [PATCH] ghr: remove gopath Closes #47780. Signed-off-by: Rui Chen --- Formula/ghr.rb | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Formula/ghr.rb b/Formula/ghr.rb index b9b7dcad44..5428b32f17 100644 --- a/Formula/ghr.rb +++ b/Formula/ghr.rb @@ -12,21 +12,15 @@ class Ghr < Formula sha256 "3d96e05a7cc1bb89e910845db0f6ed80175f8f77c31adc0938a5716414296fad" => :sierra end - depends_on "dep" => :build depends_on "go" => :build def install - ENV["GOPATH"] = buildpath - dir = buildpath/"src/github.com/tcnksm/ghr" - dir.install Dir["*"] - cd dir do - # Avoid running `go get` - inreplace "Makefile", "go get ${u} -d", "" + # Avoid running `go get` + inreplace "Makefile", "go get ${u} -d", "" - system "make", "build" - bin.install "bin/ghr" => "ghr" - prefix.install_metafiles - end + system "make", "build" + bin.install "bin/ghr" => "ghr" + prefix.install_metafiles end test do