diff --git a/test-runner/gofmt.sh b/test-runner/gofmt.sh index 0ef6bc7..f210374 100755 --- a/test-runner/gofmt.sh +++ b/test-runner/gofmt.sh @@ -1,6 +1,7 @@ #!/bin/bash set -ex +GOWORK=${GOWORK:-'off'} BASE_DIR="$(dirname $0)" cd "${BASE_DIR}/../.." @@ -10,5 +11,5 @@ if [ -n "$1" ]; then fi pushd ${MODULE_DIR} -go fmt ./... +GOWORK=$GOWORK go fmt ./... popd diff --git a/test-runner/golangci.sh b/test-runner/golangci.sh index e881b6d..e68193a 100755 --- a/test-runner/golangci.sh +++ b/test-runner/golangci.sh @@ -1,6 +1,7 @@ #!/bin/bash set -ex +GOWORK=${GOWORK:-'off'} BASE_DIR="$(dirname $0)" cd "${BASE_DIR}/../.." @@ -21,5 +22,5 @@ fi pushd ${MODULE_DIR} -GOGC=10 GOLANGCI_LINT_CACHE=/tmp/golangci-cache ${BASE_DIR}/../../bin/golangci-lint run --timeout=${TIMEOUT}m -v +GOWORK=$GOWORK GOGC=10 GOLANGCI_LINT_CACHE=/tmp/golangci-cache ${BASE_DIR}/../../bin/golangci-lint run --timeout=${TIMEOUT}m -v popd diff --git a/test-runner/golint.sh b/test-runner/golint.sh index ab63aaf..5a9dfc7 100755 --- a/test-runner/golint.sh +++ b/test-runner/golint.sh @@ -5,6 +5,7 @@ set -ex # "-set_exit_status" otherwise LINT_EXIT_STATUS="-set_exit_status" +GOWORK=${GOWORK:-'off'} BASE_DIR="$(dirname $0)" cd "${BASE_DIR}/../.." @@ -25,5 +26,5 @@ fi pushd ${MODULE_DIR} export GOFLAGS="-mod=mod" -golint ${LINT_EXIT_STATUS} ./... +GOWORK=$GOWORK golint ${LINT_EXIT_STATUS} ./... popd diff --git a/test-runner/gotest.sh b/test-runner/gotest.sh index 90e46f4..5190b5d 100755 --- a/test-runner/gotest.sh +++ b/test-runner/gotest.sh @@ -1,6 +1,7 @@ #!/bin/bash set -ex +GOWORK=${GOWORK:-'off'} BASE_DIR="$(dirname $0)" cd "${BASE_DIR}/../.." @@ -10,5 +11,5 @@ if [ -n "$1" ]; then fi pushd ${MODULE_DIR} -go test -mod=mod -v ./... +GOWORK=$GOWORK go test -mod=mod -v ./... popd diff --git a/test-runner/govet.sh b/test-runner/govet.sh index 85f4d28..1786d65 100755 --- a/test-runner/govet.sh +++ b/test-runner/govet.sh @@ -1,6 +1,7 @@ #!/bin/bash set -ex +GOWORK=${GOWORK:-'off'} BASE_DIR="$(dirname $0)" cd "${BASE_DIR}/../.." @@ -10,5 +11,5 @@ if [ -n "$1" ]; then fi pushd ${MODULE_DIR} -go vet -mod=mod ./... +GOWORK=$GOWORK go vet -mod=mod ./... popd