From b2e86440d495631de66cf6e0ceaf85a7aee6c072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Baebler?= Date: Thu, 16 Jan 2025 07:30:51 +0100 Subject: [PATCH] go@1.22: don't set GOTOOLCHAIN=local --- Formula/g/go@1.22.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Formula/g/go@1.22.rb b/Formula/g/go@1.22.rb index 610ad43fefc704..f9fc7441d8e541 100644 --- a/Formula/g/go@1.22.rb +++ b/Formula/g/go@1.22.rb @@ -4,6 +4,7 @@ class GoAT122 < Formula url "https://go.dev/dl/go1.22.10.src.tar.gz" mirror "https://fossies.org/linux/misc/go1.22.10.src.tar.gz" sha256 "1e94fd48be750d1fafb4d9b3b6dd31a6e9d2735d339bf2462bc97b64ca4c1037" + revision 1 license "BSD-3-Clause" livecheck do @@ -33,8 +34,6 @@ class GoAT122 < Formula depends_on "go" => :build def install - inreplace "go.env", /^GOTOOLCHAIN=.*$/, "GOTOOLCHAIN=local" - cd "src" do ENV["GOROOT_FINAL"] = libexec # Set portable defaults for CC/CXX to be used by cgo @@ -53,17 +52,7 @@ def install rm_r(libexec/"src/runtime/pprof/testdata") end - def caveats - <<~EOS - Homebrew's Go toolchain is configured with - GOTOOLCHAIN=local - per Homebrew policy on tools that update themselves. - EOS - end - test do - assert_equal "local", shell_output("#{bin}/go env GOTOOLCHAIN").strip - (testpath/"hello.go").write <<~GO package main