diff --git a/Formula/g/go.rb b/Formula/g/go.rb index 90e70b1b71d31..a8f3fb0aa1baf 100644 --- a/Formula/g/go.rb +++ b/Formula/g/go.rb @@ -63,7 +63,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"