On Thu, 6 Jul 2023 at 14:39, brian m. carlson
<sand...@crustytoothpaste.net> wrote:
> Go 1.21 provides the `GOTOOLCHAIN` environment variable and associated
> functionality[0].  As part of this code, if go.mod indicates that a
> newer version of Go is required than the current toolchain supports, it
> proceeds by default to attempt to download a toolchain from the Internet
> and runs it without prompting the user.

Thanks for filing this!  We'd discussed this on IRC a couple times,
but that's not terribly persistent.

I've filed an MR against the package on Salsa now that patches the
default from "auto" to "path" (which is like "local", but will accept
binaries like "goX.Y" in PATH, which IMO is a pretty reasonable
compromise for the original intent of the feature):

https://salsa.debian.org/go-team/compiler/golang/-/merge_requests/12

Ideally, I think we'd also couple this with including symlinks like
"/usr/bin/go1.21" in "golang-1.21-go", but I didn't go that far in
*this* MR.

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4

Reply via email to