A tool to check available updates of packages in go.mod.
When I maintain go-zero, I often need to check if any updates on my dependencies.
Some advantages on keeping up-to-date:
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
go list -u -m -json all
to get all the available updates for both direct and indirect usages.go.mod
to get directly required packages.$ go install github.com/kevwan/depu@latest
In the directory of go.mod
, run the following command:
$ depu
Results look like below if there are available updates:
Results looks like below if no updates:
If you like or are using this project, please give it a star. Thanks!