Skip to content
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

staticcheck commit hook runs against wrong code #5758

Open
jmhodges opened this issue Jan 24, 2020 · 0 comments
Open

staticcheck commit hook runs against wrong code #5758

jmhodges opened this issue Jan 24, 2020 · 0 comments

Comments

@jmhodges
Copy link
Contributor

jmhodges commented Jan 24, 2020

When the staticcheck commit hook is run, it will be run against code that in the go module cache, not the code that is actually in the vitess repo. And it seems to be running against a specific version of vitess in that module cache.

The error reporting always points to files in ~/pkg/mod/github.com/vitessio/vitess@v2.1.1+incompatible/ which is the code I'm currently running on.

@jmhodges jmhodges changed the title staticcheck commit hook runs against wringe code staticcheck commit hook runs against wrong code Jan 24, 2020
@ajm188 ajm188 removed the P3 label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants