Skip to content

invalid go:embed: build system did not supply embed configuration #4984

Answered by ldez
Jeeyuen-Rick asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, this error is not new but I guess you have tried to skip/ignore it with an exclude rule.

As explained inside the documentation, linters cannot perform the analysis when there are typecheck errors. This is not related to golangci-lint itself but to how the analysis system works inside Go tooling.

typecheck errors are reported in the same style as linter reports/issues but are completely different because they are related to compilation problems (typecheck is not a linter).

The change inside v1.60.1 was to avoid side effects: most linters are not able to perform the analysis when there are typecheck errors, but some users thought it was working to just skip typecheck errors.

To be mo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ldez
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants