File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,6 @@ endif
122122GINKGO =ginkgo run $(GINKGO_OPTS ) $(GINKGO_FILTER_LABEL_OPT )
123123
124124BASE_GO_PACKAGE = github.com/mongodb/mongodb-atlas-kubernetes/v2
125- GO_LICENSES = go-licenses
126- GO_LICENSES_VERSION = 1.6.0
127125DISALLOWED_LICENSES = restricted,reciprocal
128126
129127SLACK_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
221219check-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"
You can’t perform that action at this time.
0 commit comments