-
Notifications
You must be signed in to change notification settings - Fork 235
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.