mirror of
https://github.com/distribution/distribution.git
synced 2025-12-26 09:24:30 +00:00
It would appear that requesting Go 1.21 in the build matrix has no effect whatsoever on what go toolchain is actually used to build the project. Specifying 1.22.0 in the go.mod go directive forces the 1.22 toolchain to be used for building Go source files, ignoring whatever Go version we set in the GHA CI matrix. Luckily we can enforce the right setting by setting GOTOOLCHAIN=local which forces Go to use the locally available toolchain instead of downloading the one requested by go.mod. Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>