-
Notifications
You must be signed in to change notification settings - Fork 229
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
Make go list run with non-root packages #47
base: master
Are you sure you want to change the base?
Conversation
Thanks for the contribution! I believe the current version does run on all the packages where there are files that have changed. Is that not working for you? If you wanted to run on all files I think you could use the |
This doesn't work in the case where there are no |
Oh, why is that? Do you get an error? |
|
Ah, yes that makes sense. Unfortunately I don't think changing it to One option is to create a Another option would be to use the golangci-lint hook, and run vet on all files. If we wanted to make this vet check work with non-root packages I think changing the |
If it outputs a list, wouldn't it then make sense to run |
My understanding is that the args passed to this script ( Iterating over all the packages returned by Maybe one way to fix this is would be to iterate over the directories, then use for dir in $(echo $@|xargs -n1 dirname|sort -u); do
go vet $(go list ./$dir)
done |
No description provided.