Closed korprulu closed 10 months ago
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.
Hello,
can you provide a minimal reproducible code example?
Currently, I recommend disabling contextcheck
.
@ldez not sure about minimal, but here's a gh-actions run on small OSS codebase (about 5k lines of go code in total) that triggers this https://github.com/arriven/db1000n/runs/7636407897?check_suite_focus=true
@arriven thank you :+1:
Yes, it's not minimal but it's a public repo so I think I will be able to work with that.
Reproduced, but another error:
$ go version
go version go1.21.0 darwin/arm64
$ golangci-lint version
golangci-lint has version 1.54.0 built with go1.21.0 from c1d8c565 on 2023-08-09T11:50:00Z
$ pwd
/tmp/db1000n
$ go clean -modcache
$ go mod tidy
$ ▶ golangci-lint run --disable-all --enable contextcheck ./...
ERRO Running error: 1 error occurred:
* can't run linter goanalysis_metalinter: buildssa: failed to load package mapstructure: could not load export data: no export data for "github.com/mitchellh/mapstructure"
Related to https://github.com/golangci/golangci-lint/discussions/1920
https://github.com/kkHAIKE/contextcheck/issues/4#issuecomment-1216563222
Welcome
Description of the problem
I got this error when I ran golangci-lint in the CircleCI's official image cimg/go:1.8. Then I tried to use image
golangci/golangci-lint:v1.47.3
to run it, I got the same error.Version of golangci-lint
golangci-lint has version 1.47.3 built from d186efe9 on 2022-08-01T11:01:02Z
Configuration file
Go environment
Verbose output of running
Code example or link to a public repository
N/A (private repo)