Show HN: Gopin – Automatically pin latest to specific versions in Go install(github.com)
github.com
Show HN: Gopin – Automatically pin latest to specific versions in Go install
https://github.com/nnnkkk7/gopin
2 comments
Nice, I have configured Renovate to updat these for me (https://www.jvt.me/posts/2022/12/20/renovate-go-install/) using the Regex manager, but cool to see other tools available to do similar things!
Thanks for the comment! Hope you find it useful.
Renovate and Dependabot keep my CI workflows updated automatically, but they don't touch go install commands in them. I was stuck manually checking and updating versions for tools like golangci-lint, goimports, etc.
gopin fixes this by: - Pinning @latest to actual versions (e.g., @latest → @v2.6.2) - Updating outdated pinned versions to the latest (e.g., @v2.5.0 → @v2.6.2)
It queries proxy.golang.org and rewrites your files in-place:
GitHub: https://github.com/nnnkkk7/gopin
Would love feedback – especially if there are edge cases I missed!