-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golangci-lint incorrectly complains about Go version being lower than needed (Go workspace) #4894
Open
6 of 7 tasks
Labels
question
Further information is requested
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
ldez
added
question
Further information is requested
and removed
bug
Something isn't working
labels
Aug 8, 2024
Hello, You checked:
But you didn't provide the required minimal reproducible example or link to a public repository. You can use the following option: run:
go: '1.22' |
ldez
changed the title
golangci-lint incorrectly complains about Go version being lower than needed
golangci-lint incorrectly complains about Go version being lower than needed (Go workspace)
Aug 8, 2024
To reproduce:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Welcome
typecheck
section of the FAQ.Description of the problem
go list -m -json
outputs multiple JSON documents when in a workspace, butgomoddirectives
only decodes the first one. That can lead togolangci-lint
wrongly complaininggolangci-lint/pkg/config/config.go
Line 79 in 90664f6
https://github.com/ldez/gomoddirectives/blob/7ed1901522539e1461a03c3237fba32af0f70523/module.go#L24-L33
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: