https://github.com/haunt98/update-go-mod
Only upgrade specific subset not all Go modules.
https://github.com/haunt98/update-go-mod
Last synced: 6 months ago
JSON representation
Only upgrade specific subset not all Go modules.
- Host: GitHub
- URL: https://github.com/haunt98/update-go-mod
- Owner: haunt98
- License: mit
- Created: 2022-07-21T16:42:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-21T04:41:19.000Z (6 months ago)
- Last Synced: 2025-04-21T05:38:45.359Z (6 months ago)
- Language: Go
- Homepage:
- Size: 233 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# update-go-mod
[](https://github.com/haunt98/update-go-mod/actions)
[](https://github.com/haunt98/update-go-mod/tags)Only upgrade specific subset not all modules.
## Install
Should use Go version `>= 1.16`:
```sh
go install github.com/haunt98/update-go-mod/cmd/update-go-mod@latest
```## Usage
Create local file `.deps` ([example](.deps)) or use url depends on your use
case:```sh
# Default read from .deps
update-go-mod# Read from URL
update-go-mod --deps-url "https://example.txt"# Don't do anything
update-go-mod --dry-run# Take a look
# Require GitHub access token in ~/.netrc
update-go-mod overlook
```## Thanks
- [Managing dependencies](https://go.dev/doc/modules/managing-dependencies)
- [Bash one liners](https://blog.fredrb.com/2023/08/13/bash-one-liner-gomod/)