You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my go.mod had a version of 1.24.1
when i changed it to 1.23.7 it worked
Version of golangci-lint
$ golangci-lint --versiongolangci-lint has version v2.0.2 built with go1.23.7 from (unknown, modified: ?, mod sum: "h1:dMCC8ikPiLDvHMFy3+XypSAuGDBOLzwWqqamer+bWsY=") on (unknown)
Configuration
$ golangci-lint fmt --config=.golangci.yamlError: can't load config: the Go language version (go1.23) used to build golangci-lint is lower than the targeted Go version (1.24.1)Failed executing command with error: can't load config: the Go language version (go1.23) used to build golangci-lint is lower than the targeted Go version (1.24.1)
Go environment
$ go version && go env
❯ go version && go envgo version go1.23.7 darwin/arm64GO111MODULE=''GOARCH='arm64'GOBIN=''GOCACHE='/Users/danmordechay/Library/Caches/go-build'GOENV='/Users/danmordechay/Library/Application Support/go/env'GOEXE=''GOEXPERIMENT=''GOFLAGS=''GOHOSTARCH='arm64'GOHOSTOS='darwin'GOINSECURE=''GOMODCACHE='/Users/danmordechay/go/1.23.7/pkg/mod'GONOPROXY='github.com/weka'GONOSUMDB='github.com/weka'GOOS='darwin'GOPATH='/Users/danmordechay/go/1.23.7'GOPRIVATE='github.com/weka'GOPROXY='https://proxy.golang.org,direct'GOROOT='/Users/danmordechay/.goenv/versions/1.23.7'GOSUMDB='sum.golang.org'GOTMPDIR=''GOTOOLCHAIN='auto'GOTOOLDIR='/Users/danmordechay/.goenv/versions/1.23.7/pkg/tool/darwin_arm64'GOVCS=''GOVERSION='go1.23.7'GODEBUG=''GOTELEMETRY='local'GOTELEMETRYDIR='/Users/danmordechay/Library/Application Support/go/telemetry'GCCGO='gccgo'GOARM64='v8.0'AR='ar'CC='clang'CXX='clang++'CGO_ENABLED='1'GOMOD='/Users/danmordechay/dev/gohome/go.mod'GOWORK=''CGO_CFLAGS='-O2 -g'CGO_CPPFLAGS=''CGO_CXXFLAGS='-O2 -g'CGO_FFLAGS='-O2 -g'CGO_LDFLAGS='-O2 -g'PKG_CONFIG='pkg-config'GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/w4/wb1ryhrj5x3fsk0cz8h5p_vm0000gn/T/go-build2508768153=/tmp/go-build -gno-record-gcc-switches -fno-common'
Verbose output of running
$ golangci-lint cache clean
$ golangci-lint run -vINFO golangci-lint has version v2.0.2 built with go1.23.7 from (unknown, modified: ?, mod sum: "h1:dMCC8ikPiLDvHMFy3+XypSAuGDBOLzwWqqamer+bWsY=") on (unknown) INFO [config_reader] Config search paths: [./ /Users/danmordechay/dev/gohome /Users/danmordechay/dev /Users/danmordechay /Users /] INFO [config_reader] Used config file .golangci.yaml Error: can't load config: the Go language version (go1.23) used to build golangci-lint is lower than the targeted Go version (1.24.1)Failed executing command with error: can't load config: the Go language version (go1.23) used to build golangci-lint is lower than the targeted Go version (1.24.1)
A minimal reproducible example or link to a public repository
// add your code here
Validation
Yes, I've included all information above (version, config, etc.).
$ golangci-lint --version
golangci-lint has version v2.0.2 built with go1.23.7 from (unknown, modified: ?, mod sum: "h1:dMCC8ikPiLDvHMFy3+XypSAuGDBOLzwWqqamer+bWsY=") on (unknown)
Once again, this issue is the illustration of why we strongly discourage to use go install.
Welcome
typecheck
section of the FAQ.How did you install golangci-lint?
go install
Description of the problem
my go.mod had a version of 1.24.1
when i changed it to 1.23.7 it worked
Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
// add your code here
Validation
Supporter
The text was updated successfully, but these errors were encountered: