hub: remove gopath

Closes #47817.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-13 08:58:46 -05:00 committed by Rui Chen
parent c7acc64f3d
commit f165d09713

View file

@ -15,17 +15,13 @@ class Hub < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/github/hub").install buildpath.children
cd "src/github.com/github/hub" do
system "make", "install", "prefix=#{prefix}"
system "make", "install", "prefix=#{prefix}"
prefix.install_metafiles
prefix.install_metafiles
bash_completion.install "etc/hub.bash_completion.sh"
zsh_completion.install "etc/hub.zsh_completion" => "_hub"
fish_completion.install "etc/hub.fish_completion" => "hub.fish"
end
bash_completion.install "etc/hub.bash_completion.sh"
zsh_completion.install "etc/hub.zsh_completion" => "_hub"
fish_completion.install "etc/hub.fish_completion" => "hub.fish"
end
test do