Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version: Add versioning for github tarballs
When building from github tarballs, getting the version from `git describe` won't work. However, we can make use of $Format$ and .gitattributes as described in [1] to automatically substitute the correct version in a go variable when `git archive` is used. In particular, the correct version number will automatically be substituted when GitHub creates release tarballs. [1] https://icinga.com/blog/2022/05/25/embedding-git-commit-information-in-go-binaries/ Signed-off-by: Christophe Fergeau <[email protected]>
- Loading branch information