Skip to content

Commit 432f47f

Browse files
committed
feat(Makefile): version gotestsum
1 parent 5cb83cb commit 432f47f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ DOCKER_MARKDOWNLINT_IMAGE?=tmknom/markdownlint:0.45.0
3434
DOCKER_DOCTOC_IMAGE?=node:alpine
3535
# See Versions: https://www.npmjs.com/package/doctoc
3636
DOCTOC_VERSION=2.3.0
37+
# See Versions: https://github.com/gotestyourself/gotestsum/releases
38+
GOTESTSUM_VERSION=v1.13.0
3739
# See Versions: https://github.com/crate-ci/typos/releases
3840
TYPOS_VERSION=v1.33.1
3941
# See Versions: https://github.com/osrg/gobgp/releases
@@ -114,10 +116,10 @@ ifeq "$(BUILD_IN_DOCKER)" "true"
114116
-v $(GO_MOD_CACHE):/go/pkg/mod \
115117
-w /go/src/github.com/cloudnativelabs/kube-router $(DOCKER_BUILD_IMAGE) \
116118
sh -c \
117-
'go install gotest.tools/gotestsum@latest && CGO_ENABLED=0 gotestsum --format gotestdox -- -timeout 30s github.com/cloudnativelabs/kube-router/v2/cmd/kube-router/ github.com/cloudnativelabs/kube-router/v2/...'
119+
'go install gotest.tools/gotestsum@$(GOTESTSUM_VERSION) && CGO_ENABLED=0 gotestsum --format gotestdox -- -timeout 30s github.com/cloudnativelabs/kube-router/v2/cmd/kube-router/ github.com/cloudnativelabs/kube-router/v2/...'
118120
else
119121
ifeq ($(shell command -v gotestsum 2>/dev/null),)
120-
go install gotest.tools/gotestsum@latest
122+
go install gotest.tools/gotestsum@$(GOTESTSUM_VERSION)
121123
endif
122124
gotestsum --format gotestdox -- -timeout 30s github.com/cloudnativelabs/kube-router/v2/cmd/kube-router/ github.com/cloudnativelabs/kube-router/v2/...
123125
endif

0 commit comments

Comments
 (0)