Skip to content

Commit 7ca8e35

Browse files
committed
[email protected]: don't set GOTOOLCHAIN=local
1 parent 74598a1 commit 7ca8e35

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Diff for: Formula/g/[email protected]

+1-12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class GoAT121 < Formula
55
mirror "https://fossies.org/linux/misc/go1.21.13.src.tar.gz"
66
sha256 "71fb31606a1de48d129d591e8717a63e0c5565ffba09a24ea9f899a13214c34d"
77
license "BSD-3-Clause"
8+
revision 1
89

910
bottle do
1011
rebuild 1
@@ -27,8 +28,6 @@ class GoAT121 < Formula
2728
depends_on "go" => :build
2829

2930
def install
30-
inreplace "go.env", /^GOTOOLCHAIN=.*$/, "GOTOOLCHAIN=local"
31-
3231
cd "src" do
3332
ENV["GOROOT_FINAL"] = libexec
3433
# Set portable defaults for CC/CXX to be used by cgo
@@ -47,17 +46,7 @@ def install
4746
rm_r(libexec/"src/runtime/pprof/testdata")
4847
end
4948

50-
def caveats
51-
<<~EOS
52-
Homebrew's Go toolchain is configured with
53-
GOTOOLCHAIN=local
54-
per Homebrew policy on tools that update themselves.
55-
EOS
56-
end
57-
5849
test do
59-
assert_equal "local", shell_output("#{bin}/go env GOTOOLCHAIN").strip
60-
6150
(testpath/"hello.go").write <<~GO
6251
package main
6352

0 commit comments

Comments
 (0)