Skip to content

Commit

Permalink
Merge pull request #181453 from Homebrew/kubernetes-cli@1.29-go
Browse files Browse the repository at this point in the history
kubernetes-cli@1.29: avoid fetching pre-built `go`
  • Loading branch information
BrewTestBot committed Aug 17, 2024
2 parents 6e38378 + f89d797 commit 048312a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Formula/k/kubernetes-cli@1.29.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ class KubernetesCliAT129 < Formula
disable! date: "2025-02-28", because: :deprecated_upstream

depends_on "bash" => :build
depends_on "coreutils" => :build
depends_on "go@1.21" => :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 048312a

Please sign in to comment.