Skip to content

Commit abc53be

Browse files
program247365claude
andcommitted
fix(make): resolve release tag after cog bump in publish target
$(eval)/$(shell) expand before any recipe line runs, so TAG captured the pre-bump tag and the release/formula were cut for the old version. Resolve TAG in the shell after cog bump and pass it to bump-formula. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6d1389a commit abc53be

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ install:
5454

5555
publish: ## Bump version, push, create GitHub release, update Homebrew formula
5656
cog bump --auto
57-
$(eval TAG := $(shell git describe --tags --abbrev=0))
58-
$(eval VERSION := $(shell echo "$(TAG)" | sed 's/^v//'))
59-
@echo "Publishing $(TAG)..."
60-
git push origin main
61-
git push origin $(TAG)
62-
gh release create $(TAG) \
57+
@TAG=$$(git describe --tags --abbrev=0); \
58+
VERSION=$${TAG#v}; \
59+
echo "Publishing $$TAG..."; \
60+
git push origin main && \
61+
git push origin "$$TAG" && \
62+
gh release create "$$TAG" \
6363
--repo program247365/hackertuah \
64-
--title "$(TAG)" \
65-
--generate-notes
66-
$(MAKE) bump-formula VERSION=$(VERSION)
64+
--title "$$TAG" \
65+
--generate-notes && \
66+
$(MAKE) bump-formula TAG=$$TAG VERSION=$$VERSION
6767

6868
bump-formula: ## Update Homebrew tap formula to current version (requires VERSION and TAG)
6969
$(eval TAG ?= $(shell git describe --tags --abbrev=0))

0 commit comments

Comments
 (0)