Skip to content

Commit

Permalink
Merge pull request #181454 from Homebrew/kubernetes-cli-go
Browse files Browse the repository at this point in the history
kubernetes-cli: avoid fetching pre-built `go`
  • Loading branch information
BrewTestBot authored Aug 17, 2024
2 parents 413949b + 461d006 commit 6e38378
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Formula/k/kubernetes-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ class KubernetesCli < Formula
end

depends_on "bash" => :build
depends_on "coreutils" => :build
depends_on "go" => :build

uses_from_macos "rsync" => :build

on_macos do
depends_on "coreutils" => :build
end

def install
ENV.prepend_path "PATH", Formula["coreutils"].libexec/"gnubin" # needs GNU date
ENV.prepend_path "PATH", Formula["coreutils"].libexec/"gnubin" if OS.mac? # needs GNU date
ENV["FORCE_HOST_GO"] = "1"
system "make", "WHAT=cmd/kubectl"
bin.install "_output/bin/kubectl"

Expand Down

0 comments on commit 6e38378

Please sign in to comment.