11SHELL = /bin/bash -eo pipefail
22
3- GORELEASER_VERSION = "v1.19.2"
4- GO_LICENSER_VERSION = "v0.4.0"
5- GOLANGCI_LINT_VERSION = "v1.64.4"
63export DOCKER_IMAGE_NAME = observability/apm-lambda-extension
74export DOCKER_REGISTRY = docker.elastic.co
85
@@ -12,44 +9,44 @@ clean:
129
1310.PHONY : dist
1411dist :
15- @go run github.com/goreleaser/goreleaser@ $( GORELEASER_VERSION ) release --snapshot --clean
12+ @go tool github.com/goreleaser/goreleaser/v2 release --snapshot --clean
1613
1714.PHONY : zip
1815zip :
19- @go run github.com/goreleaser/goreleaser@ $( GORELEASER_VERSION ) release --snapshot --clean --skip- docker
16+ @go tool github.com/goreleaser/goreleaser/v2 release --snapshot --clean --skip docker
2017
2118build :
22- @go run github.com/goreleaser/goreleaser@ $( GORELEASER_VERSION ) build --snapshot --clean
19+ @go tool github.com/goreleaser/goreleaser/v2 build --snapshot --clean
2320
2421.PHONY : release
2522release :
26- go run github.com/goreleaser/goreleaser@ $( GORELEASER_VERSION ) release --clean
23+ go tool github.com/goreleaser/goreleaser/v2 release --clean
2724
2825.PHONY : release-notes
2926release-notes :
3027 @./.ci/release-github.sh
3128
3229.PHONY : test
3330test :
34- @go run gotest.tools/gotestsum@v1.9.0 --format testname --junitfile $(junitfile )
31+ @go tool gotest.tools/gotestsum --format testname --junitfile $(junitfile )
3532
3633.PHONY : lint-prep
3734lint-prep :
3835 @go mod tidy && git diff --exit-code
3936
4037.PHONY : lint
4138lint :
42- @if [ " $( CI) " != " " ]; then go run github.com/golangci/golangci-lint/cmd/golangci-lint@ $( GOLANGCI_LINT_VERSION ) version; fi
43- @go run github.com/golangci/golangci-lint/cmd/golangci-lint@ $( GOLANGCI_LINT_VERSION ) run --build-tags tools
39+ @if [ " $( CI) " != " " ]; then go tool github.com/golangci/golangci-lint/v2/ cmd/golangci-lint version; fi
40+ @go tool github.com/golangci/golangci-lint/v2/ cmd/golangci-lint run
4441
4542NOTICE.txt : go.mod
4643 @bash ./scripts/notice.sh
4744
4845.PHONY : check-licenses
4946check-licenses :
50- @go run github.com/elastic/go-licenser@ $( GO_LICENSER_VERSION ) -d -exclude tf -exclude testing -exclude e2e-testing .
51- @go run github.com/elastic/go-licenser@ $( GO_LICENSER_VERSION ) -d -exclude tf -exclude testing -exclude e2e-testing -ext .java .
52- @go run github.com/elastic/go-licenser@ $( GO_LICENSER_VERSION ) -d -exclude tf -exclude testing -exclude e2e-testing -ext .js .
47+ @go tool github.com/elastic/go-licenser -d -exclude tf -exclude testing -exclude e2e-testing .
48+ @go tool github.com/elastic/go-licenser -d -exclude tf -exclude testing -exclude e2e-testing -ext .java .
49+ @go tool github.com/elastic/go-licenser -d -exclude tf -exclude testing -exclude e2e-testing -ext .js .
5350
5451
5552.PHONY : check-notice
0 commit comments