-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
linters_context generating typechecking error about malformed import path for files and folders in issues.exclude-dirs #4659
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
Comments
Hello, can you provide a minimal reproducible example? |
yes, sure, sorry https://github.com/MistaTwista/templado |
looks similar at some things #1832 btw, i can look for fix if you don't mind |
There is no possible fix because it's related to the Go tooling. I recommend using the FYI |
Closes in favor of #4360 - Feel free to subscribe there for updates. |
Uh oh!
There was an error while loading. Please reload this page.
Welcome
Description of the problem
I have a project where go files generating from paths that looks like
internal/snippet/some{{ .Metadata.Name }}/packageName/something.go
. I process them with golang template engine, so in a final project it's ok)I've set option to exclude-dirs in config.
The problem here is that folders actually are not skipped.
I see error like:
typechecking error: malformed import path "...some{{.Metadata.Name}}": invalid char '{'
The question is is this a bug or if I need to template something I should use
.tmpl
files instead of.go
? But what about to skip directories completely?Version of golangci-lint
Configuration
Go environment
Verbose output of running
A minimal reproducible example or link to a public repository
Validation
The text was updated successfully, but these errors were encountered: