File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 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
44VERSION := $(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
9399check : 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"
Original file line number Diff line number Diff line change @@ -32,5 +32,5 @@ Make sure your working tree is clean before starting (`make check-clean`).
32324 . ** 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 ```
You can’t perform that action at this time.
0 commit comments