-
-
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
gomodguard: Panic stack trace: goroutine 1 [running]:\nruntime/debug.Stack() & can't run linter goanalysis_metalinter: panic occurred #4242
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
I have updated golangci-lint to the latest version, but there are still the same errors.
|
@honey-yogurt, hi! Looks like issue in Based on stacktrace, this line panics. You could debug P.S. Also I am not sure that |
@Antonboom thanks, I have submitted an issue on gomodguard. |
I don't think there is a problem with gomodguard. |
Gomodguard does not support nested modules at the moment. Though that may change next year. I have not tested it outside of a module, I can do that and raise an error instead of panic. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@chenyanchen can you open a new issue? |
Welcome
Description of the problem
This is my first time using golangci-lint, adding pre-commit to an existing project.
My go.mod file is not in the root directory of the project. I used the pre-commit-hook project to apply golangci-lint. After renaming the directory where go.mod is located, I encountered a problem with the title.
This is my project structure:
Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
code:
go.mod:
Validation
The text was updated successfully, but these errors were encountered: