Skip to content

Commit da2dac0

Browse files
committed
hack/update-toc.sh: Use go install instead of go get
Signed-off-by: Stephen Augustus <[email protected]>
1 parent 73b4eca commit da2dac0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hack/update-toc.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ 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
39+
# module.
40+
# If we do the go install in the repo, it will create/update go.mod and go.sum.
4041
cd "${TMP_DIR}"
41-
GO111MODULE=on GOBIN="${TMP_DIR}" go get "sigs.k8s.io/mdtoc@${TOOL_VERSION}"
42+
GO111MODULE=on GOBIN="${TMP_DIR}" go install "sigs.k8s.io/mdtoc@${TOOL_VERSION}"
4243
export PATH="${TMP_DIR}:${PATH}"
4344
cd "${ROOT}"
4445

0 commit comments

Comments
 (0)