depbump

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 11 Imported by: 0

README

depbump

depbump is a very simple command that can be used to bump a Go module, and commit its changes. It's designed to be used in automated tooling to help the process of keeping certain dependencies up to date.

It also supports automating a PR against the repository (GitHub only). To enable the functionality, run depbump with the GITHUB_TOKEN environment variable set to the token for the user/identity you want to have the PR submitted as.

Usage

depbump [-nopush|-nopr|-version VERSION] PATH [COMMAND]

-version will update to a specific version of the dependency.

Use -nopush to skip the push to origin. You can use this if you need to preview the changes or amend the commit later.

If you are pushing, but don't want the PR to go through, you can use -nopr. The PR is also skipped if GITHUB_TOKEN is missing.

COMMAND can be used to supply a post-update command. You can use this to run any commands or scripts to update any other files post-update. The command line can be Go templated according the specific structure:

type commitTemplateData struct {
	Project string
	Owner   string // The repository "owner" (aka organization)
	Version string // If this is a semver version, it has the "v" removed.
	Target  string
	Path    string
	URL     string
	Vendor  bool
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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