Skip to content

Commit

Permalink
Merge pull request coreos#1053 from arithx/fix_test
Browse files Browse the repository at this point in the history
test: add mod=vendor to everything in test
  • Loading branch information
Stephen Lowrie authored Sep 4, 2019
2 parents 26ea00a + ef63f05 commit 16e2d00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ trap "rm -rf _testbin/" EXIT
[[ -z "$PKG" ]] && PKG="./..."

# Expand PKG, excluding the vendor directory.
pkgs=$(go list $PKG | grep -v /vendor/)
pkgs=$(go list -mod=vendor $PKG | grep -v /vendor/)
src=$(find . -name '*.go' -not -path "./vendor/*")

echo "Building tests..."
go test -mod=vendor -i "$@" $pkgs
go install $pkgs
go install -mod=vendor $pkgs

echo "Running tests..."
go test -mod=vendor -cover "$@" $pkgs
Expand All @@ -40,7 +40,7 @@ if [ -n "${res}" ]; then
fi

echo "Checking govet..."
go vet $pkgs
go vet -mod=vendor $pkgs

echo "Running commands..."
for cmd in ${GOBIN}/*; do
Expand Down

0 comments on commit 16e2d00

Please sign in to comment.