Skip to content

support Go 1.22.0 #15647

Closed
Closed
@jmhodges

Description

@jmhodges

CodeQL runs currently fail when the go.mod is set to version 1.22.0. Go 1.22.0 was released on 2024-02-06.

The error message (as seen in this run) of the failing step ("Setup Go") is:

go: download go1.22 for linux/amd64: toolchain not available
Error: Command failed: go env GOPATH

However, if you look up earlier in the "Configure" step, there's a message emitted from identify-environment.sh:

The version of Go found in the `go.mod` file (1.22) is above the supported range (1.11-1.21). The version of Go installed in the environment (1.20.14) is below the maximum supported version (1.21). Requesting the maximum supported version of Go (1.21).

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions