Bump go mod version from 1.22 to 1.22.0 to fix toolchain download issue #2267
Open
Description
Description
TL&DR
Pack cannot be build in an hermetic and containerized environment as the version of go 1.22
declared within the go.mod file do not correspond to a toolchain version 1.22.0
- see: https://go.dev/blog/toolchain
Such a limitation comes from Golang itself how it processes go.mod files. When Go sees the language version, but not a toolchain version, i.e. 1.22
vs 1.22.0
it's not going to be able to download a correct toolchain for the given language version. Go community is aware of that problem and they fixed it in 1.23
so that the inference of the .0
th toolchain from a particular language version works.
Proposed solution
Bump the go version defined within the go.mod file
Additional context
See error reported when building pack in an hermetic and containerized environment