Skip to content

Commit

Permalink
Merge pull request #202031 from Homebrew/go.env
Browse files Browse the repository at this point in the history
go: remove misleading comment in `go.env`
  • Loading branch information
BrewTestBot authored Dec 21, 2024
2 parents e3ba4e5 + 224180e commit 0ee335d
Showing 1 changed file with 12 additions and 7 deletions.
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

0 comments on commit 0ee335d

Please sign in to comment.