Use vendored deps while running e2e locally (#783)

Also set GO111MODULE=on unconditionally
This commit is contained in:
Navid Shaikh 2020-04-08 04:56:08 +05:30 committed by GitHub
parent 5c56a0710c
commit d1eb9bcb71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
# limitations under the License.
export PATH=$PWD:$PATH
export GO111MODULE=on
dir=$(dirname "${BASH_SOURCE[0]}")
base=$(cd "$dir/.." && pwd)
@ -23,4 +24,4 @@ base=$(cd "$dir/.." && pwd)
export KN_E2E_NAMESPACE=kne2etests
echo "🧪 Testing"
go test ${base}/test/e2e/ -test.v -tags "e2e ${E2E_TAGS}" "$@"
go test -mod=vendor ${base}/test/e2e/ -test.v -tags "e2e ${E2E_TAGS}" "$@"