Hi, Please refer to the Go toolchain selection <https://go.dev/doc/toolchain#:~:text=the%20GOTOOLCHAIN%20setting.-,Go%20toolchain%20selection,-At%20startup,%20the> section. go command consults the GOTOOLCHAIN env before making a decision.
Thanks, Xudong 在2024年7月25日星期四 UTC+8 09:25:48<xie cui> 写道: > go.mod: > module toolchain_test > > go 1.22.3 > > toolchain go1.25.0 > > main.go: > > package main > > func main() { > println("Hello World!") > } > > when run go build, I think that should try to download toolchain 1.25.0 > which do not exist. So I expect that cmd should failed. But It run sucess. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f3245f84-90d5-4361-b3fd-5dfa3aaa0906n%40googlegroups.com.