bumpver

command
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

README

bumpver

bumpver is a go command-line tool that changes semantic version strings in source and doc files. It was created to help with Deis releases.

Build

$ make test build
$ ./bumpver --help
Updates the current semantic version number to a new one in the specified
source and doc files.

Usage:
  bumpver [-f <current>] <version> <files>...

Options:
  -f --from=<current>  An explicit version string to replace. Otherwise, use
                       the first semantic version found in the first file.

Usage

Let's use bumpver to update the deis codebase for a new release, 0.13.3:

$ make -C contrib/bumpver/ test build
$ # update from an explicit (bad) version string
$ ./contrib/bumpver/bumpver -f latest 0.13.3 contrib/coreos/user-data
$ ./contrib/bumpver/bumpver -f 0.13.0-dev 0.13.3 \
    version/version.go \
    client/deis.py \
    client/setup.py \
    deisctl/deis-version \
    deisctl/deisctl.go \
    deisctl/README.md \
    controller/deis/__init__.py \
    README.md
$ # update from the first semver string found
$ # this type of command should now be enough to bump everything
$ ./contrib/bumpver/bumpver 0.14.0 \
    version/version.go \
    client/deis.py \
    client/setup.py \
    deisctl/deis-version \
    deisctl/deisctl.go \
    deisctl/README.md \
    contrib/coreos/user-data.example \
    controller/deis/__init__.py \
    README.md

Of course, you should always check the changes with git diff before committing anything to version control. You can also check the Release Checklist for the most up-to-date list of files to bump.

Please add any issues you find with this software to the Deis project.

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