File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -ex
33
4+ GOWORK=${GOWORK:- ' off' }
45BASE_DIR=" $( dirname $0 ) "
56cd " ${BASE_DIR} /../.."
67
@@ -10,5 +11,5 @@ if [ -n "$1" ]; then
1011fi
1112
1213pushd ${MODULE_DIR}
13- go fmt ./...
14+ GOWORK= $GOWORK go fmt ./...
1415popd
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -ex
33
4+ GOWORK=${GOWORK:- ' off' }
45BASE_DIR=" $( dirname $0 ) "
56cd " ${BASE_DIR} /../.."
67
2122
2223pushd ${MODULE_DIR}
2324
24- GOGC=10 GOLANGCI_LINT_CACHE=/tmp/golangci-cache ${BASE_DIR} /../../bin/golangci-lint run --timeout=${TIMEOUT} m -v
25+ GOWORK= $GOWORK GOGC=10 GOLANGCI_LINT_CACHE=/tmp/golangci-cache ${BASE_DIR} /../../bin/golangci-lint run --timeout=${TIMEOUT} m -v
2526popd
Original file line number Diff line number Diff line change 55# "-set_exit_status" otherwise
66LINT_EXIT_STATUS=" -set_exit_status"
77
8+ GOWORK=${GOWORK:- ' off' }
89BASE_DIR=" $( dirname $0 ) "
910cd " ${BASE_DIR} /../.."
1011
2526pushd ${MODULE_DIR}
2627export GOFLAGS=" -mod=mod"
2728
28- golint ${LINT_EXIT_STATUS} ./...
29+ GOWORK= $GOWORK golint ${LINT_EXIT_STATUS} ./...
2930popd
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -ex
33
4+ GOWORK=${GOWORK:- ' off' }
45BASE_DIR=" $( dirname $0 ) "
56cd " ${BASE_DIR} /../.."
67
@@ -10,5 +11,5 @@ if [ -n "$1" ]; then
1011fi
1112
1213pushd ${MODULE_DIR}
13- go test -mod=mod -v ./...
14+ GOWORK= $GOWORK go test -mod=mod -v ./...
1415popd
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -ex
33
4+ GOWORK=${GOWORK:- ' off' }
45BASE_DIR=" $( dirname $0 ) "
56cd " ${BASE_DIR} /../.."
67
@@ -10,5 +11,5 @@ if [ -n "$1" ]; then
1011fi
1112
1213pushd ${MODULE_DIR}
13- go vet -mod=mod ./...
14+ GOWORK= $GOWORK go vet -mod=mod ./...
1415popd
You can’t perform that action at this time.
0 commit comments