Skip to content

Bump go mod version from 1.22 to 1.22.0 to fix toolchain download issue #2267

Open
@cmoulliard

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 .0th 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
Screenshot 2024-09-26 at 19 31 43

Metadata

Assignees

No one assigned

    Labels

    status/discussion-neededIssue or PR that requires in-depth discussion.type/choreIssue that requests non-user facing changes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions