Skip to content

Commit 0ee335d

Browse files
authored
Merge pull request #202031 from Homebrew/go.env
go: remove misleading comment in `go.env`
2 parents e3ba4e5 + 224180e commit 0ee335d

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

Diff for: Formula/g/go.rb

+12-7
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ class Go < Formula
2121
end
2222

2323
bottle do
24-
sha256 arm64_sequoia: "5a84bce32e529be0472734e5789883471df559105afa2a92498631c75032d86c"
25-
sha256 arm64_sonoma: "5a84bce32e529be0472734e5789883471df559105afa2a92498631c75032d86c"
26-
sha256 arm64_ventura: "5a84bce32e529be0472734e5789883471df559105afa2a92498631c75032d86c"
27-
sha256 sonoma: "7edf89af80b910df2599cb12402f356276ff266f2c2c56072214706ddbade724"
28-
sha256 ventura: "7edf89af80b910df2599cb12402f356276ff266f2c2c56072214706ddbade724"
29-
sha256 x86_64_linux: "90eb5bd4696656becce3fcffb7ab69a1d4333d41ac6f458a64c5dd1651922857"
24+
rebuild 1
25+
sha256 arm64_sequoia: "ce9aad234b15d873fcd727306ab7a361db924b449f527904b3614c3aa4773767"
26+
sha256 arm64_sonoma: "ce9aad234b15d873fcd727306ab7a361db924b449f527904b3614c3aa4773767"
27+
sha256 arm64_ventura: "ce9aad234b15d873fcd727306ab7a361db924b449f527904b3614c3aa4773767"
28+
sha256 sonoma: "333dc0e36f21c81f8b07f8b0d9125a6cc0b16979de9d996979bf1eff6280b9bf"
29+
sha256 ventura: "333dc0e36f21c81f8b07f8b0d9125a6cc0b16979de9d996979bf1eff6280b9bf"
30+
sha256 x86_64_linux: "b18da6cb774e738cb65bd9840521a85c1eda42323e3264730794624a81dcfa64"
3031
end
3132

3233
# Don't update this unless this version cannot bootstrap the new version.
@@ -63,7 +64,11 @@ class Go < Formula
6364
end
6465

6566
def install
66-
inreplace "go.env", /^GOTOOLCHAIN=.*$/, "GOTOOLCHAIN=local"
67+
inreplace "go.env" do |s|
68+
# Remove misleading comment about automatically downloading newer toolchains.
69+
s.gsub!(/^# Automatically download.*$/, "")
70+
s.gsub!(/^GOTOOLCHAIN=.*$/, "GOTOOLCHAIN=local")
71+
end
6772

6873
(buildpath/"gobootstrap").install resource("gobootstrap")
6974
ENV["GOROOT_BOOTSTRAP"] = buildpath/"gobootstrap"

0 commit comments

Comments
 (0)