Skip to content

Commit

Permalink
Ignore all vendor directories
Browse files Browse the repository at this point in the history
Merge pull request #8 from kuleuven/fix/ignore-all-vendors
  • Loading branch information
TekWizely authored Jan 8, 2021
2 parents 11519af + 9f26467 commit f167a2e
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 -not -path './vendor/*' | 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 -not -path './vendor/*' | 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 -not -path './vendor/*' | 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 -not -path './vendor/*' | 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 f167a2e

Please sign in to comment.