-
Notifications
You must be signed in to change notification settings - Fork 277
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
errors when GO111MODULE=off #1026
Labels
Comments
@chavacava #1025 only fixes the case where GO111MODULE is off and Should I open another issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Revive exits non-zero and outputs an error, "linting - retrieving failures channel: command go list: exit status 1," when run against a null module or with module support turned off.
To Reproduce
Note that the problem will also manifest when revive is executed against a package that is not in a module at all and is also not in GOPATH.
Expected behavior
Appropriate linting errors should be displayed.
Additional context
This works fine in v1.3.7 and lower; it's a new problem in v1.3.9. If you want some files to use, vim-go's test-fixtures may be useful. The files in the test-fixture for its lint tests are relevant. Here's output showing v1.3.7 vs v1.3.9 behavior:
With v1.3.7:
With v1.3.9:
The text was updated successfully, but these errors were encountered: