File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 17
17
set -euo pipefail
18
18
19
19
readonly PKG_ROOT=" $( git rev-parse --show-toplevel) "
20
+ go env -w GO111MODULE=auto
20
21
21
22
${PKG_ROOT} /hack/verify-gofmt.sh
22
23
${PKG_ROOT} /hack/verify-govet.sh
Original file line number Diff line number Diff line change 17
17
set -euo pipefail
18
18
19
19
echo " Verifying gomod"
20
- export GO111MODULE=on
20
+ go env -w GO111MODULE=auto
21
+ echo " go mod init"
22
+ go mod init
21
23
echo " go mod tidy"
22
24
go mod tidy
23
25
echo " go mod vendor"
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ set -o errexit
18
18
set -o nounset
19
19
set -o pipefail
20
20
21
+ go env -w GO111MODULE=auto
21
22
TOOL_VERSION=" v0.3.4"
22
23
23
24
# cd to the root path
@@ -39,7 +40,7 @@ if [[ -z "$(command -v misspell)" ]]; then
39
40
# perform go get in a temp dir as we are not tracking this version in a go module
40
41
# if we do the go get in the repo, it will create / update a go.mod and go.sum
41
42
cd " ${TMP_DIR} "
42
- GO111MODULE=on GOBIN=" ${TMP_DIR} " go get " github.com/client9/misspell/cmd/misspell@${TOOL_VERSION} "
43
+ GO111MODULE=auto GOBIN=" ${TMP_DIR} " go get " github.com/client9/misspell/cmd/misspell@${TOOL_VERSION} "
43
44
export PATH=" ${TMP_DIR} :${PATH} "
44
45
fi
45
46
cd " ${ROOT} "
You can’t perform that action at this time.
0 commit comments