getversion

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

getversion

go.dev reference Go Report Card Releases LICENSE

This tool is designed to help bridge the gap between which version of a repository is needed and which version of the repository best matches that need. For example if you want version 1.1 of a repository, that likely means you want the latest version of the 1.1 branch of the repository, not necessarily version 1.1.0.

This tool assumes projects are using Semantic Versioning which is a structured way of creating version numbers.

Usage

# Download and install the tool.
# Hey look - go get also uses semantic versioning!
go get -u github.com/shortmoose/getversion@v0.1

# Clone the repository. 
git clone https://github.com/<repo>

# Use getversion to checkout the correct state of the repository.
getversion <repo>@v1.1

# At some point in the future we would like to improve the workflow
# so getversion can also do the clone.
# For example: getversion github.com/<repo>@v1.1

Note that this tool often leaves the repository in a disconnected state. This is okay since when using getversion we are normally not planning to modify the given repository, we are just wanting to use it.

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