Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update outdated Go dependencies interactively

License

NotificationsYou must be signed in to change notification settings

blink-io/go-mod-upgrade

 
 

Repository files navigation

Build StatusLicenseRelease

Update outdated Go dependencies interactively

Screenshot

Note that only patch and minor updates are supported for now.

Why

The Go wiki has a great section onHow 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 all2> /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 toyarn upgrade-interactive, but for Go.

Install

Pre-compiled binaries for Windows, OS X and Linux are available in thereleases 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

Colors in module names help identify the update type:

  • green for a minor update
  • yellow for a patch update
  • red for a prerelease update

About

Update outdated Go dependencies interactively

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go94.6%
  • Makefile5.4%

[8]ページ先頭

©2009-2025 Movatter.jp