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