https://github.com/kevwan/depu
A tool to check available updates of packages in go.mod.
https://github.com/kevwan/depu
go golang gomod gomodule gomodules update-checker updates
Last synced: 6 months ago
JSON representation
A tool to check available updates of packages in go.mod.
- Host: GitHub
- URL: https://github.com/kevwan/depu
- Owner: kevwan
- License: mit
- Created: 2022-05-19T13:15:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T16:04:42.000Z (over 2 years ago)
- Last Synced: 2025-04-06T04:39:43.894Z (6 months ago)
- Topics: go, golang, gomod, gomodule, gomodules, update-checker, updates
- Language: Go
- Homepage: https://go-zero.dev
- Size: 48.8 KB
- Stars: 123
- Watchers: 5
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# depu
[](https://github.com/kevwan/depu/actions)
[](https://goreportcard.com/report/github.com/kevwan/depu)
[](https://github.com/kevwan/depu)
[](https://opensource.org/licenses/MIT)## Why to write depu
When I maintain [go-zero](https://github.com/zeromicro/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 upgradeAnd `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 all` to get all the available updates for both direct and indirect usages.
- parse local `go.mod` to get directly required packages.
- only display the availabe updates for directly required packages.## Installation
```shell
$ go install github.com/kevwan/depu@latest
```## How to use
In the directory of `go.mod`, run the following command:
```shell
$ depu
```Results look like below if there are available updates:
Results looks like below if no updates:
## Give a Star! ⭐
If you like or are using this project, please give it a star. Thanks!