Skip to content

Pinned lint and vulnerability commands cannot analyze the Go 1.26 module #680

Description

@PierrunoYT

Summary

The repository requires Go 1.26.5, while the exact golangci-lint and govulncheck commands mandated by AGENTS.md switch to Go 1.25.12. Both reject the project because its packages require Go 1.26.

Reproduction

go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.12.2 run --enable-only unused,ineffassign,staticcheck ./...

fails with:

the Go language version (go1.25) used to build golangci-lint is lower than the targeted Go version (1.26.5)
go run golang.org/x/vuln/cmd/govulncheck@v1.3.0 ./...

fails while loading packages with package requires newer Go version go1.26 (application built with go1.25).

Relevant files

  • go.mod: go 1.26.5
  • AGENTS.md: pins golangci-lint v2.12.2 and govulncheck v1.3.0

Observed at commit 6fc1220 on Windows/amd64 with automatic toolchain switching.

Impact

Contributors following mandatory repository instructions cannot complete the required checks.

Suggested fix

Pin tool versions built with/supporting Go 1.26, or provide repository-managed invocations using the required toolchain. Exercise the exact documented commands in CI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions