Depu
A tool to check available updates of packages in go.mod.
Install / Use
/learn @kevwan/DepuREADME
depu
Why to write depu
When I maintain go-zero, I often need to check if any updates on my dependencies.
Some advantages on keeping up-to-date:
- get more features
- known bugs or security issues get fixed
- not breaking for deprecated usages on must upgrade
And go list lists all the dependent packages for both direct and indirect usages, and Indirect fields always telling true. For details, check this issue: https://github.com/golang/go/issues/40364
Design ideas
- use
go list -u -m -json allto get all the available updates for both direct and indirect usages. - parse local
go.modto get directly required packages. - only display the availabe updates for directly required packages.
Installation
$ go install github.com/kevwan/depu@latest
How to use
In the directory of go.mod, run the following command:
$ depu
Results look like below if there are available updates:
<img width="800" alt="image" src="https://user-images.githubusercontent.com/1918356/169304283-1b09a434-0034-48c5-ab72-6c2c8d10e946.png">Results looks like below if no updates:
<img width="375" alt="image" src="https://user-images.githubusercontent.com/1918356/170682231-26a8b67b-5921-447d-b0b2-b8f3909a568e.png">Give a Star! ⭐
If you like or are using this project, please give it a star. Thanks!
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
347.0kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
