From 5316627621d6b42224d648557b9ddb6f1a626fd6 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:09:19 +0800 Subject: [PATCH] extend/ENV/super: set `GOTOOLCHAIN` This will prevent Go from automatically downloading a newer toolchain when one is requested by a `go.mod` file. See: - https://tip.golang.org/doc/toolchain - https://kokada.capivaras.dev/blog/quick-bits-go-automatically-downloads-a-newer-toolchain-if-needed/ --- Library/Homebrew/extend/ENV/super.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 2462e7cbbb..b4fbd56e8d 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -89,6 +89,9 @@ module Superenv # Prevent the OpenSSL rust crate from building a vendored OpenSSL. # https://github.com/sfackler/rust-openssl/blob/994e5ff8c63557ab2aa85c85cc6956b0b0216ca7/openssl/src/lib.rs#L65 self["OPENSSL_NO_VENDOR"] = "1" + # Prevent Go from automatically downloading a newer toolchain than the one that we have. + # https://tip.golang.org/doc/toolchain + self["GOTOOLCHAIN"] = "local" set_debug_symbols if debug_symbols