Skip to content

Commit 4989a15

Browse files
authored
Merge pull request kubernetes#3230 from PushkarJ/replace-go-get-with-go-install
Replace go get with go install in verify shell scripts
2 parents 2bee05c + 1d5d82e commit 4989a15

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

hack/verify-spelling.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ exitHandler() (
3434
)
3535
trap exitHandler EXIT
3636

37-
# perform go get in a temp dir as we are not tracking this version in a go module
38-
# if we do the go get in the repo, it will create / update a go.mod and go.sum
37+
# perform go install in a temp dir as we are not tracking this version in a go module
38+
# if we do the go install in the repo, it will create / update a go.mod and go.sum
3939
cd "${TMP_DIR}"
40-
GO111MODULE=on GOBIN="${TMP_DIR}" go get "github.com/client9/misspell/cmd/misspell@${TOOL_VERSION}"
40+
GO111MODULE=on GOBIN="${TMP_DIR}" go install "github.com/client9/misspell/cmd/misspell@${TOOL_VERSION}"
4141
export PATH="${TMP_DIR}:${PATH}"
4242
cd "${ROOT}"
4343

hack/verify-toc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ exitHandler() (
3535
)
3636
trap exitHandler EXIT
3737

38-
# perform go get in a temp dir as we are not tracking this version in a go module
39-
# if we do the go get in the repo, it will create / update a go.mod and go.sum
38+
# perform go install in a temp dir as we are not tracking this version in a go module
39+
# if we do the go install in the repo, it will create / update a go.mod and go.sum
4040
cd "${TMP_DIR}"
4141
GO111MODULE=on GOBIN="${TMP_DIR}" go install "sigs.k8s.io/mdtoc@${TOOL_VERSION}"
4242
export PATH="${TMP_DIR}:${PATH}"

0 commit comments

Comments
 (0)