Closed ghost closed 4 years ago
Hi, In which repo do you run the linter? It seems you vendored httpmock, but without more information, it is very difficult to help you.
I use go modules in this one although the changes I did with httpmock are not committed since I got the error above. If you add a test file anywhere there and run make check-style
, the error should pop out.
I re-wrote the tests with httptest but I would rather use httpmock as it's nicer.
As you use now go modules, you have to remove the vendor/ directory. This way, the linter won't visit it.
Hum, I tried to remove the vendor directory. That caused some mayhem… Something to investigate I suppose. I guess that does solve the problem or at least points me to the right solution so this can be close.
Thank you so much for your help.
I am trying to run
golangcli-lint
, and got this:Any idea how to fix that?