diff --git a/run-go-vet.sh b/run-go-vet.sh index 0d21ea4..8b72ef1 100755 --- a/run-go-vet.sh +++ b/run-go-vet.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash + set -e pkg=$(go list) -for dir in $(echo $@|xargs -n1 dirname|sort -u); do - go vet $pkg/$dir +for fn in "$@"; do + go vet "${pkg}/${fn}" done