Skip to content

Commit d0cd69e

Browse files
committed
update makefile
1 parent 15b9701 commit d0cd69e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ endif
122122
GINKGO=ginkgo run $(GINKGO_OPTS) $(GINKGO_FILTER_LABEL_OPT)
123123

124124
BASE_GO_PACKAGE = github.com/mongodb/mongodb-atlas-kubernetes/v2
125-
GO_LICENSES = go-licenses
126-
GO_LICENSES_VERSION = 1.6.0
127125
DISALLOWED_LICENSES = restricted,reciprocal
128126

129127
SLACK_WEBHOOK ?= https://hooks.slack.com/services/...
@@ -215,7 +213,7 @@ build-licenses.csv: go.mod ## Track licenses in a CSV file
215213
export GOOS=linux
216214
export GOARCH=amd64
217215
GOTOOLCHAIN=local \
218-
go run github.com/google/$(GO_LICENSES)@v$(GO_LICENSES_VERSION) csv --include_tests $(BASE_GO_PACKAGE)/... > licenses.csv
216+
go-licenses csv --include_tests $(BASE_GO_PACKAGE)/... > licenses.csv
219217

220218
.PHONY: check-licenses
221219
check-licenses: ## Check licenses are compliant with our restrictions
@@ -224,7 +222,7 @@ check-licenses: ## Check licenses are compliant with our restrictions
224222
export GOOS=linux
225223
export GOARCH=amd64
226224
GOTOOLCHAIN=local \
227-
go run github.com/google/$(GO_LICENSES)@v$(GO_LICENSES_VERSION) check --include_tests \
225+
go-licenses check --include_tests \
228226
--disallowed_types $(DISALLOWED_LICENSES) $(BASE_GO_PACKAGE)/...
229227
@echo "--------------------"
230228
@echo "Licenses check: PASS"

0 commit comments

Comments
 (0)