Skip to content

Commit 41b17d3

Browse files
author
David Arnold
committed
Fix #4 - exclude vendor dir on mod repo
1 parent c2648ea commit 41b17d3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

go-build-repo-mod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ done
1515
errCode=0
1616
# Assume parent folder of go.mod is module root folder
1717
#
18-
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
18+
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
1919
pushd "${sub}" >/dev/null
2020
"${cmd[@]}" "${OPTIONS[@]}" ./...
2121
if [ $? -ne 0 ]; then

go-test-repo-mod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ done
1515
errCode=0
1616
# Assume parent folder of go.mod is module root folder
1717
#
18-
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
18+
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
1919
pushd "${sub}" >/dev/null
2020
"${cmd[@]}" "${OPTIONS[@]}" ./...
2121
if [ $? -ne 0 ]; then

go-vet-repo-mod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ done
1515
errCode=0
1616
# Assume parent folder of go.mod is module root folder
1717
#
18-
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
18+
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
1919
pushd "${sub}" >/dev/null
2020
"${cmd[@]}" "${OPTIONS[@]}" ./...
2121
if [ $? -ne 0 ]; then

golangci-lint-repo-mod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ done
1515
errCode=0
1616
# Assume parent folder of go.mod is module root folder
1717
#
18-
for sub in $(find . -name go.mod | xargs -n1 dirname | sort -u) ; do
18+
for sub in $(find . -name go.mod -not -path './vendor/*' | xargs -n1 dirname | sort -u) ; do
1919
pushd "${sub}" >/dev/null
2020
"${cmd[@]}" "${OPTIONS[@]}" ./...
2121
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)