Skip to content

with directive go 1.22.3 in go.mod docker golangci-lint failed #4704

@jerome-laforge

Description

@jerome-laforge

Welcome

Description of the problem

With directive go 1.22.3 in go.mod, we got the error below with golangci-lint docker image

level=error msg="Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: go.mod requires go >= 1.22.3 (running go 1.22.2; GOTOOLCHAIN=local)\n"

Version of golangci-lint

1.58

Configuration

n/a

Go environment

n/a

Verbose output of running

level=warning msg="The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner. "
level=error msg="Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: go: go.mod requires go >= 1.22.3 (running go 1.22.2; GOTOOLCHAIN=local)\n"

A minimal reproducible example or link to a public repository

n/a

Validation

  • Yes, I've included all information above (version, config, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions