oligot/go-mod-upgrade
oligot/go-mod-upgrade has 1,111 GitHub stars and 52 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 09:43 UTC. Last push 2026-10-18.
Update outdated Go dependencies interactively
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalgo-mod-upgrade
Update outdated Go dependencies interactively

Major version updates are supported by default via the pkg.go.dev API.
Why
The Go wiki has a great section on How to Upgrade and Downgrade Dependencies. One can run the command
go list -u -f '{{if (and (not (or .Main .Indirect)) .Update)}}{{.Path}}: {{.Version}} -> {{.Update.Version}}{{end}}' -m all 2> /dev/null
to view available upgrades for direct dependencies. Unfortunately, the output is not actionable, i.e. we can't easily use it to update multiple dependencies.
This tool is an attempt to make it easier to update multiple dependencies interactively. This is similar to yarn upgrade-interactive, but for Go.
Install
Pre-compiled binaries for Windows, OS X and Linux are available in the releases page.
Alternatively, with the Go toolchain, you can do
go install github.com/oligot/go-mod-upgrade@latest
Usage
In a Go project which uses modules, you can now run
go-mod-upgrade
List available upgrades
To see what upgrades are available without any interactivity, use the --list flag:
go-mod-upgrade --list
This will display all available module upgrades using the same color coding as the interactive mode, making it perfect for CI/CD pipelines or when you just want to check what's available.
Colors in module names help identify the update type:
- magenta for a major update
- yellow for a minor update
- green for a patch update
- red for a prerelease update
Cooldown
To avoid adopting a version the moment it is released, use the --cooldown flag
to require that a version has been published for a given period:
go-mod-upgrade --cooldown 7d
Accepted values, following npm-check-updates:
| Value | Meaning |
|---|---|
7 |
7 days |
7d |
7 days |
12h |
12 hours |
30m |
30 minutes |
When the latest version falls inside the cooldown window, go-mod-upgrade offers the greatest version that is old enough instead, annotating the row with the version it withheld:
github.com/foo/bar 1.2.0 -> 1.3.0 (1.4.0 held, 2d old)
If no version satisfies the window, the module is held back entirely and reported after discovery:
1 module held back by cooldown (7d):
github.com/only/new 1.0.1 (1d old)
Note that Go reports the VCS tag time of a version, not a server-side publish time as npm does, so someone in control of a repository could backdate a tag. Treat cooldown as a way to let a release settle before adopting it, rather than as a hard guarantee against a compromised release.
Additional options can be specified via the CLI global options:
GLOBAL OPTIONS:
--pagesize value, -p value Specify page size (default: 10)
--force, -f Force update all modules in non-interactive mode (default: false)
--list, -l List available module upgrades without interactivity (default: false)
--verbose, -v Verbose mode (default: false)
--hook value Hook to execute for each updated module
--ignore value, -i value Ignore modules matching the given regular expression
--no-major Disable checking for major version updates (default: false)
--no-cache Skip the disk cache when checking for major version updates (default: false)
--cooldown value, -c value Only consider versions published at least this long ago (e.g. 7, 7d, 12h, 30m)
--help, -h show help (default: false)
--version print the version (default: false)
Major version lookups are cached on disk for 24 hours in
os.UserCacheDir()/go-mod-upgrade (~/Library/Caches/go-mod-upgrade on macOS,
$XDG_CACHE_HOME/go-mod-upgrade or ~/.cache/go-mod-upgrade on Linux). Set
GOMODUPGRADE_CACHE_DIR to use a different directory.
Changelog
See CHANGELOG.md.
Integration
You may also use go-mod-upgrade with these tools:
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,398 starspublic-apis/public-apis
A collective list of free APIs
497,679 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
447,495 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,261 stars