goupdate

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Goupdate is a tool for updating Go module dependencies. It is supports Go workspaces and is an alternative to running go get -t -u that attempts to be less conservative and produces apidiff reports.

Warning

Note that goupdate loops until there are no updates available in the build graph. This may be inefficient but should be good enough in practice.

Module dependencies are updated in-place and may leave workspace in broken state on failure. Use with extreme caution if there are unsaved changes. It is recommended to run goupdate as part of the scheduled CI pipeline instead.

CI

Integrating goupdate with GitHub Actions or other CI solutions that support scheduled pipelines should be straightforward and only requires Go toolchain to be installed. Goupdate can generate HTML reports (that can be embedded in Markdown) with overview of updated modules and API changes. It can also run tests and includes results in the generated reports. Test failures are intended to be reviewed by humans and so do not cause goupdate to exit with non-zero status code.

Motivation

Goupdate was written after fighting with dependabot storming repositories with pull requests per dependency update per module in workspace. In addition to that, dependabot does not support updating modules with pseudo-versions like golang.org/x/crypto which does not publish semver-tagged releases, see https://github.com/dependabot/dependabot-core/issues/3017. It also does not support Go workspaces which we use extensively since their introduction in Go 1.18.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL