AFAIK since Go 1.24 using the format go 1.N (e.g. go 1.24) in go.mod is a valid alias for the latest version but when this pattern is used without the toolchain directive being explicitly set in the go.mod we're getting the "Invalid Go toolchain version" error.

AFAIK since Go 1.24 using the format
go 1.N(e.g.go 1.24) in go.mod is a valid alias for the latest version but when this pattern is used without thetoolchaindirective being explicitly set in the go.mod we're getting the "Invalid Go toolchain version" error.