-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
questionFurther information is requestedFurther information is requested
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/welcome/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
The typecheck phase fails at resolving import path gopkg.in/yaml.v3 as providing the symbol yaml. The Go 1.22 compiler has no problem with that import path.
Version of golangci-lint
$ golangci-lint --version
golangci-lint has version 1.57.2 built with go1.22.1 from 77a8601 on 2024-03-28T18:39:06ZA minimal reproducible example
$ cat x.go
package main
import "gopkg.in/yaml.v3"
var _ = yaml.NewEncoder
$ golangci-lint run x.go
x.go:5:9: undefined: yaml (typecheck)
var _ = yaml.NewEncoder
^Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested