From 20b5678490a0b24aea4c1dd0f3d6bb021862923a Mon Sep 17 00:00:00 2001 From: James Nesbitt Date: Thu, 12 Dec 2024 13:33:28 +0200 Subject: [PATCH] PRODENG-2805 makefile has default segment token - fix broken go-releaser builds for missing segment token, when makefile is used Signed-off-by: James Nesbitt --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 81f14c42..58b15f94 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ + GO=$(shell which go) RELEASE_FOLDER=dist/release @@ -9,6 +10,8 @@ SIGN?=docker run --rm -i $(VOLUME_MOUNTS) -e SM_API_KEY -e SM_CLIENT_CERT_PASSWO GOLANGCI_LINT?=docker run -t --rm -v "$(CURDIR):/data" -w "/data" golangci/golangci-lint:latest golangci-lint +SEGMENT_TOKEN?="" + .PHONY: clean clean: rm -fr dist @@ -59,7 +62,7 @@ clean-release: # and alias it. .PHONY: local local: - goreleaser build --clean --single-target --skip=validate --snapshot --config .goreleaser.local.yml + SEGMENT_TOKEN=${SEGMENT_TOKEN} goreleaser build --clean --single-target --skip=validate --snapshot --config .goreleaser.local.yml # run linting .PHONY: lint