From 2a7ce50afdd9adec6779d506b8cca4a4585bd506 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Sun, 26 May 2019 11:49:22 +0200 Subject: [PATCH] When building locally, the version should be based on the last tag. When building locally using govv, the version information should use the last git tag to provide greater visibility on the version and not just use a static string. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 1216b3b..7a3dde1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,7 +7,7 @@ tools: ## Install the tools used to test and build build: ## Build Sherpa for development purposes @echo "==> Running $@..." - govvv build -o sherpa ./cmd -version local -pkg github.com/jrasell/sherpa/pkg/build + govvv build -o sherpa ./cmd -version $(shell git describe --tags --abbrev=0 $(git rev-list --tags --max-count=1) |cut -c 2- |awk '{print $1}')+dev -pkg github.com/jrasell/sherpa/pkg/build test: ## Run the Sherpa test suite with coverage @echo "==> Running $@..."