DEV Community

Maxime Guilbert
Maxime Guilbert

Posted on • Updated on

How to resolve "can't run linter goanalysis_metalinter" ?


If you are using Golangci-lint, you can find this kind of error.

level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package cache: could not load export data: no export data
Enter fullscreen mode Exit fullscreen mode

But how can we resolve it?


In almost every case, this issue append when the project can't be build correctly. So execute the command go build to check if you haven't an error elsewhere.

In all cases where I've met this issue, I had a version conflict between two libraries, or a library which was loaded correctly.

Other possibilities

When I had this issue for the first time, I saw a lot of people saying that they had this issue with specific versions of the linter.

So if you still have the error after doing a successful go build, check if you have the latest version of the tool.


I hope it willl help you! 🍺

You want to support me?

Buy Me A Coffee

Top comments (0)