Crates.io | versio |
lib.rs | versio |
version | 0.8.3 |
source | src |
created_at | 2020-09-02 06:02:38.615161 |
updated_at | 2024-02-08 21:10:17.340069 |
description | Versio is a tool to manage and publish project versions. |
homepage | https://github.com/chaaz/versio/ |
repository | https://github.com/chaaz/versio/ |
max_upload_size | |
id | 283777 |
size | 561,434 |
Versio (pronounced vir-zhee-oh) is a tool that manages your project's version evolution. It intelligently updates semantic version numbers based on conventional commits. It can handle changelogs, project tags, release subdirectories, GPG signing, pull requests, and more.
Versio is especially intelligent when dealing with monorepos, allowing not only individual control of each project within the repo, but also managing dependencies and references among them.
The fastest way to install is to use one of the pre-built programs from our Releases. See the Installation docs for more details and alternate methods to install Versio.
Once installed, try this in your project to create a new release:
$ git pull
$ versio init # this creates .versio.yaml
$ git add .versio.yaml .gitignore
$ git commit -m "build: add versio management"
$ git push
$ versio release
We've listed plenty of other use cases where you can use Versio in your projects.
Versio is listed some places, and used by some projects. If you find Versio in the wild--or if you use it yourself--and it's not shown here, please submit an issue. We'll make sure you're mentioned.
We're listed here!
We're used here!
Versio can help automate the release process by updating semver version numbers from conventional commits, generating a changelog, and managing dependencies between projects. This frees developers from having to coordinate among themselves what versions should be assigned.
Versio can also deliver a machine-readable listing of your projects: where they live, how they're related, what their tags are--this can be used to help construct other parts of your release process: such as when you build, test, publish, and deploy.
Many software projects declare their version number in some sort of manifest file. Node/NPM projects have a "package.json" file, Rust/Cargo uses "Cargo.toml", Java/Maven has "pom.xml", Python/pip has "setup.py", Ruby/gem has gemspec files, and so forth. Go projects and Terraform modules, among others, opt to keep version numbers in VCS tags instead of a file. However your project is structured, you can list the location of your projects' version numbers in a Versio config file, and thenceforth Versio will be able to manage them.
.versio.yaml
) in your
repository, and finds the version number of each project referenced
there.versio-prev
) in
your version control history.versio-prev
tag.Check out the Use Cases to learn how to use
Versio via specific use cases--including managing your repo, using
specific flows, or integrating Versio into CI/CD; or look at the Versio
Reference for all command-line options and the
format of the .versio.yaml
config file.
Versio has some nice features that make it easy to use in your projects; here are just a few.
Versio can use the Git API to group commits by PR in its changelog, and can even "unsquash" PRs to extract the conventional commits hidden inside a squashed commit. This process happens automatically for GitHub-originated repositories. See the PR Scanning page for more information.
You can write VCS tags, and use them instead of a manifest file; this is a common pattern in Go and Terraform projects. To use this feature, you need to provide the project's tag prefix and a default value. See the Version Tags document for details.
Some projects keep major revisions of software in different
subdirectories, usually named v2
, v3
etc. This allows developers to
keep track of multiple, sometimes very different application structures
at the same time. You can utilize this feature by providing a subs
property in your project configuration. See the Major
Subdirectories page for a description.
If you're not happy with the default changelog you can write your own liquid template instead; put it in the project itself, elsewhere in the filesystem, or serve it from a web service. If that's not enough flexibility, you can output a JSON document that contains all the release information, and use that in your own pipeline for custom actions. Additionally, you can examine the builtin templates, perform a changelog-only release, or format a release plan using a changelog. The Changelog page contains more details on this powerful feature.
VCS Levels allow you to control the way Versio interacts with a Git repository: you can interact only locally, with a remote, or not at all. See the description in its document for more information.
Sometimes a version in one project will depend on a change in another project, even when both projects are in the same monorepo. Versio allows you to manage these dependencies, and automatically increment all dependent versions. See the Version Chains document for more info.
You might like to sign your commits or your tags to provide more security to your users and co-workers. Versio likes security, too! Versio can read tags and commits that have been signed, and with the right configuration, will sign its own commits and tags. See the Signing page for how to do this.
There's a whole Troubleshooting document for tracking down and reporting errors or other unexpected behavior. A lot of the time, though, it comes down to running Versio with logging and error tracing activated:
RUST_LOG=versio=trace RUST_BACKTRACE=1 versio <command>
We would love your code contributions to Versio! Feel free to branch or fork this repository and submit a pull request.
versio
is written in Rust, a powerful and safe language for writing
native executables. Visit the Rust lang
homepage to learn more
about writing and compiling Rust programs, and see the
Contributing page for Versio specifically.
We also happily accept ideas, suggestions, documentation, tutorials, and any and all feedback. Leave a message on the support pages of this repo, or send messages directly to its owners.