Support building from git-archive tarballs (#1187)

Adds support for exposing the correct version via export-subst for
git-archive constructed tarballs to make it easier to consume directly
from source.

Will check in the following order of preference:
 - version file
 - format string containing "Tag:"
 - clone remote to describe commit
This commit is contained in:
Darragh Bailey
2020-12-14 18:49:50 +00:00
committed by GitHub
parent 5e62973e08
commit 20067be0d2
3 changed files with 60 additions and 11 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
lib/vagrant-libvirt/version.rb export-subst