Skip to content

Go: Analyze action fails when repo requires go 1.27.0 or greater #22394

Description

@silverwind

In a repo with go 1.27.0 in go.mod, the Analyze (Go) task fails because under GOTOOLCHAIN=local, Go can not dynamically switch its toolchain. Recommend to run with GOTOOLCHAIN=auto to let Go switch.

Example failure from this run:

[2026-08-20 08:27:16] [build-stderr] 2026/08/20 08:27:16 Error running go tooling: err: exit status 1: stderr: go: go.mod requires go >= 1.27 (running go 1.26.6; GOTOOLCHAIN=local)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions