Tag version from git tag (#1161)

Switch to looking up the version from a file with a fall back to get
it directly from git tags if the file isn't available.

The version file is automatically generated by a task of building of the
gem and included in the package release to prevent reading from git.

Should allow the release process to be automated from pushing of a git
tag.
This commit is contained in:
Darragh Bailey
2020-10-23 18:18:52 +01:00
committed by GitHub
parent 6e2df05177
commit 966ef2a534
4 changed files with 44 additions and 3 deletions

3
.gitignore vendored
View File

@@ -19,3 +19,6 @@ Vagrantfile
!example_box/Vagrantfile
.vagrant
*.swp
# don't commit the generated version
lib/vagrant-libvirt/version