Skip to content

Commit bd79c1c

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

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Formula/g/[email protected]

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

910
livecheck do
1011
url "https://go.dev/dl/?mode=json"
@@ -33,8 +34,6 @@ class GoAT122 < Formula
3334
depends_on "go" => :build
3435

3536
def install
36-
inreplace "go.env", /^GOTOOLCHAIN=.*$/, "GOTOOLCHAIN=local"
37-
3837
cd "src" do
3938
ENV["GOROOT_FINAL"] = libexec
4039
# Set portable defaults for CC/CXX to be used by cgo
@@ -53,17 +52,7 @@ def install
5352
rm_r(libexec/"src/runtime/pprof/testdata")
5453
end
5554

56-
def caveats
57-
<<~EOS
58-
Homebrew's Go toolchain is configured with
59-
GOTOOLCHAIN=local
60-
per Homebrew policy on tools that update themselves.
61-
EOS
62-
end
63-
6455
test do
65-
assert_equal "local", shell_output("#{bin}/go env GOTOOLCHAIN").strip
66-
6756
(testpath/"hello.go").write <<~GO
6857
package main
6958

0 commit comments

Comments
 (0)