Commit Hash Replacement in Git Archives
October 5, 2018
Trying to implement some sort of automatic versioning based on your git commits or tags is not as
easy as it should seem. The idea is to use a feature built into the revision control system to
modify your project files and increment version counters automatically or embed commit information
into software builds - in my case: the --version
output of Go applications built with
cobra.