Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: remove misleading comment in go.env #202031

Merged
merged 2 commits into from
Dec 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions Formula/g/go.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ class Go < Formula
end

bottle do
sha256 arm64_sequoia: "5a84bce32e529be0472734e5789883471df559105afa2a92498631c75032d86c"
sha256 arm64_sonoma: "5a84bce32e529be0472734e5789883471df559105afa2a92498631c75032d86c"
sha256 arm64_ventura: "5a84bce32e529be0472734e5789883471df559105afa2a92498631c75032d86c"
sha256 sonoma: "7edf89af80b910df2599cb12402f356276ff266f2c2c56072214706ddbade724"
sha256 ventura: "7edf89af80b910df2599cb12402f356276ff266f2c2c56072214706ddbade724"
sha256 x86_64_linux: "90eb5bd4696656becce3fcffb7ab69a1d4333d41ac6f458a64c5dd1651922857"
rebuild 1
sha256 arm64_sequoia: "ce9aad234b15d873fcd727306ab7a361db924b449f527904b3614c3aa4773767"
sha256 arm64_sonoma: "ce9aad234b15d873fcd727306ab7a361db924b449f527904b3614c3aa4773767"
sha256 arm64_ventura: "ce9aad234b15d873fcd727306ab7a361db924b449f527904b3614c3aa4773767"
sha256 sonoma: "333dc0e36f21c81f8b07f8b0d9125a6cc0b16979de9d996979bf1eff6280b9bf"
sha256 ventura: "333dc0e36f21c81f8b07f8b0d9125a6cc0b16979de9d996979bf1eff6280b9bf"
sha256 x86_64_linux: "b18da6cb774e738cb65bd9840521a85c1eda42323e3264730794624a81dcfa64"
end

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

def install
inreplace "go.env", /^GOTOOLCHAIN=.*$/, "GOTOOLCHAIN=local"
inreplace "go.env" do |s|
# Remove misleading comment about automatically downloading newer toolchains.
s.gsub!(/^# Automatically download.*$/, "")
s.gsub!(/^GOTOOLCHAIN=.*$/, "GOTOOLCHAIN=local")
end

(buildpath/"gobootstrap").install resource("gobootstrap")
ENV["GOROOT_BOOTSTRAP"] = buildpath/"gobootstrap"
Expand Down
Loading