kubeaudit: remove gopath

Closes #47850.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Caleb Xu 2019-12-13 19:25:25 -05:00 committed by Rui Chen
parent ea62a6fc86
commit a15a7eac3a

View file

@ -15,10 +15,8 @@ class Kubeaudit < Formula
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath/"src"
system "go", "build", "-o", "kubeaudit"
bin.install "kubeaudit"
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"kubeaudit"
prefix.install_metafiles
end
test do