From 502cf9f91c9b3d1092a4d85b655f7388b04bcc1e Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Mon, 26 Oct 2020 14:19:09 -0700 Subject: [PATCH 1/2] another option for fixing the go vet script --- run-go-vet.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run-go-vet.sh b/run-go-vet.sh index 0d21ea4..b72a4df 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 From 5424282df25815e0db7ad7de69cd01b90e6e4939 Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Mon, 26 Oct 2020 14:21:57 -0700 Subject: [PATCH 2/2] spacing --- run-go-vet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-go-vet.sh b/run-go-vet.sh index b72a4df..8b72ef1 100755 --- a/run-go-vet.sh +++ b/run-go-vet.sh @@ -3,5 +3,5 @@ set -e pkg=$(go list) for fn in "$@"; do - go vet "${pkg}/${fn}" + go vet "${pkg}/${fn}" done