linters_context generating typechecking error about malformed import path for files and folders in issues.exclude-dirs #4659
Labels
question
Further information is requested
8000
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: