Closed
Description
Welcome
- Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've read the typecheck section of the FAQ (https://golangci-lint.run/usage/faq/#why-do-you-have-typecheck-errors).
- Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.). (https://golangci-lint.run/usage/linters/)
Description of the problem
Running today latest version
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.0 run -v
throws panics
ERRO Running error: can't run linter goanalysis_metalinter
goanalysis_metalinter: interfacer: package "main" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference
#.golangci.yml
run:
timeout: 5m
issues:
fix: true
linters:
enable-all: true
disable:
- gochecknoglobals
- exhaustivestruct
- exhaustruct
- varnamelen
- musttag
- depguard
Version of golangci-lint
> go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.0 --version
golangci-lint has version v1.56.0 built with go1.21.5 from (unknown, mod sum: "h1:uivqYQ8WbkWAE4LgjLLhxsTyb68FlcZF3ZIF0oyn4WQ=") on (unknown)
Configuration
run:
timeout: 5m
issues:
fix: true
linters:
enable-all: true
disable:
- gochecknoglobals
- exhaustivestruct
- exhaustruct
- varnamelen
- musttag
- depguard
Go environment
go version go1.21.5 darwin/amd64
Verbose output of running
WARN [runner] Can't run linter goanalysis_metalinter: goanalysis_metalinter: interfacer: package "client" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference
INFO [runner] processing took 3.335µs with stages: max_same_issues: 502ns, uniq_by_line: 411ns, skip_dirs: 334ns, nolint: 287ns, cgo: 203ns, source_code: 133ns, autogenerated_exclude: 130ns, filename_unadjuster: 127ns, fixer: 125ns, identifier_marker: 125ns, skip_files: 125ns, exclude: 125ns, path_prettifier: 120ns, exclude-rules: 119ns, max_from_linter: 111ns, diff: 67ns, path_shortener: 60ns, sort_results: 60ns, severity-rules: 59ns, max_per_file_from_linter: 58ns, path_prefixer: 54ns
INFO [runner] linters took 16.579660199s with stages: goanalysis_metalinter: 16.579591126s
ERRO Running error: can't run linter goanalysis_metalinter
goanalysis_metalinter: interfacer: package "client" (isInitialPkg: true, needAnalyzeSource: true): runtime error: invalid memory address or nil pointer dereference
INFO Memory: 168 samples, avg is 1038.6MB, max is 1648.4MB
INFO Execution took 17.114056017s
A minimal reproducible example or link to a public repository
Validation
- Yes, I've included all information above (version, config, etc.).