fix: pass VERSION as GORELEASER_CURRENT_TAG to preserve v-prefix in archive names

Signed-off-by: Terry Howe <terrylhowe@gmail.com>
This commit is contained in:
Terry Howe 2026-05-02 11:35:35 -06:00
parent 93103ce66c
commit 04885dd905
No known key found for this signature in database

View file

@ -179,11 +179,7 @@ build-cross: $(GORELEASER)
.PHONY: dist
dist:
ifeq ($(VERSION),canary)
GORELEASER_CURRENT_TAG=canary LDFLAGS='$(LDFLAGS)' $(GORELEASER) release --snapshot --clean
else
LDFLAGS='$(LDFLAGS)' $(GORELEASER) release --snapshot --clean
endif
GORELEASER_CURRENT_TAG='$(VERSION)' LDFLAGS='$(LDFLAGS)' $(GORELEASER) release --snapshot --clean
.PHONY: fetch-dist
fetch-dist: