Add version package

This PR adds a version package and consolidates version strings into a
Version struct.
This commit is contained in:
Alex Dadgar
2017-08-16 15:42:15 -07:00
parent b90980bd7d
commit c26ecb7092
18 changed files with 120 additions and 101 deletions

View File

@@ -3,7 +3,7 @@ set -e
GIT_COMMIT="$(git rev-parse HEAD)"
GIT_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)"
LDFLAG="main.GitCommit=${GIT_COMMIT}${GIT_DIRTY}"
LDFLAG="github.com/hashicorp/nomad/version.GitCommit=${GIT_COMMIT}${GIT_DIRTY}"
TAGS="nomad_test"
if [[ $(uname) == "Linux" ]]; then