Skip to content

Commit f16436d

Browse files
committed
bump
1 parent 0328809 commit f16436d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test lint build clean cover release-major release-minor release-patch check-clean
1+
.PHONY: test lint build clean cover release-major release-minor release-patch check-clean proxy
22

33
# Get current version from version.go
44
VERSION := $(shell grep 'const Version' version.go | sed 's/.*"\(.*\)"/\1/')
@@ -89,6 +89,12 @@ release-patch: check-clean
8989
@echo "Created tag v$(NEW_VERSION)"
9090
@echo "Run 'git push && git push --tags' to publish"
9191

92+
# Trigger the Go module proxy to index the current version
93+
proxy:
94+
@echo "Triggering Go module proxy for v$(VERSION)..."
95+
@GOPROXY=proxy.golang.org go list -m github.com/linkvite/go@v$(VERSION)
96+
@echo "Done. v$(VERSION) is now available via go get."
97+
9298
# Pre-release checks
9399
check: lint test
94100
@echo "All checks passed!"
@@ -109,3 +115,4 @@ help:
109115
@echo " make release-major - Bump major version (x.0.0)"
110116
@echo " make release-minor - Bump minor version (0.x.0)"
111117
@echo " make release-patch - Bump patch version (0.0.x)"
118+
@echo " make proxy - Trigger Go module proxy to index current version"

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ Make sure your working tree is clean before starting (`make check-clean`).
3232
4. **Trigger the Go module proxy** to index the new version immediately:
3333

3434
```sh
35-
GOPROXY=proxy.golang.org go list -m github.com/linkvite/go@v1.2.2
35+
make proxy
3636
```

0 commit comments

Comments
 (0)