Skip to content

Commit

Permalink
Modifies repo-mod hooks to exclude vendor folders
Browse files Browse the repository at this point in the history
Merge pull request #5 from blaggacao/fix-vendor
  • Loading branch information
TekWizely authored Aug 18, 2020
2 parents c2648ea + 41b17d3 commit 11519af
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go-build-repo-mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ done
errCode=0
# Assume parent folder of go.mod is module root folder
#
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
pushd "${sub}" >/dev/null
"${cmd[@]}" "${OPTIONS[@]}" ./...
if [ $? -ne 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion go-test-repo-mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ done
errCode=0
# Assume parent folder of go.mod is module root folder
#
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
pushd "${sub}" >/dev/null
"${cmd[@]}" "${OPTIONS[@]}" ./...
if [ $? -ne 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion go-vet-repo-mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ done
errCode=0
# Assume parent folder of go.mod is module root folder
#
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
pushd "${sub}" >/dev/null
"${cmd[@]}" "${OPTIONS[@]}" ./...
if [ $? -ne 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion golangci-lint-repo-mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ done
errCode=0
# Assume parent folder of go.mod is module root folder
#
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
pushd "${sub}" >/dev/null
"${cmd[@]}" "${OPTIONS[@]}" ./...
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 11519af

Please sign in to comment.