File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 77 echo " ERROR: VERSION is required. Usage: make tag VERSION=v1.2.3" ; \
88 exit 1; \
99 fi
10- @echo " Tagging all modules with $( VERSION) ..."
10+ @echo " === Releasing $( VERSION) ==="
11+ @echo " "
12+ @echo " Step 1: Update go.mod to require pkg/persist $( VERSION) ..."
13+ @sed -i ' ' ' s|github.com/codeGROOVE-dev/sfcache/pkg/persist v[^ ]*|github.com/codeGROOVE-dev/sfcache/pkg/persist $(VERSION)|' go.mod
14+ @echo " "
15+ @echo " Step 2: Commit go.mod changes..."
16+ @git add go.mod
17+ @git commit -m " Release $( VERSION) " || echo " (no changes to commit)"
18+ @echo " "
19+ @echo " Step 3: Create tags..."
1120 @git tag -a $(VERSION ) -m " $( VERSION) "
1221 @find . -name go.mod -not -path " ./go.mod" | while read mod; do \
1322 dir=$$(dirname $$mod ) ; \
1625 git tag -a $$ dir/$(VERSION ) -m " $( VERSION) " ; \
1726 done
1827 @echo " "
19- @echo " Created tags:"
20- @git tag -l " $( VERSION) " " */$( VERSION) " | sed ' s/^/ /'
28+ @echo " Step 4: Push commit and tags..."
29+ @git push origin main
30+ @git push origin --tags
2131 @echo " "
22- @echo " To push tags, run: git push origin --tags"
32+ @echo " === Release $( VERSION) complete ==="
33+ @echo " Tags pushed:"
34+ @git tag -l " $( VERSION) " " */$( VERSION) " | sed ' s/^/ /'
2335
2436test :
2537 @echo " Running tests in all modules..."
Original file line number Diff line number Diff line change 1+ github.com/codeGROOVE-dev/sfcache/pkg/persist v1.1.3 h1:mlNbUzAXXCiIqUYqU0BhqbHNt93IB6NT/tLoENcEDHk =
2+ github.com/codeGROOVE-dev/sfcache/pkg/persist v1.1.3 /go.mod h1:5D7qOtzUK/FgzBCjdaQa7r5i/sizbZH/grEcq+kGntY =
You can’t perform that action at this time.
0 commit comments