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/
This commit is contained in:
Carlo Cabrera 2024-08-20 20:09:19 +08:00
parent 474f5763f0
commit 5316627621
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -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