From 2f8584d673f3df67b0308324ecdaa5bcbf5a3a58 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Fri, 2 Jun 2017 12:52:37 -0500 Subject: [PATCH] adds support for v prefix in release tags Signed-off-by: Mike Brown --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c502fd224..cdd388d44 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,9 @@ BUILD_DIR ?= _output # VERSION is derived from the current tag for HEAD plus amends. Version is used # to set/overide the criContainerdVersion variable in the verison package for # cri-containerd. -VERSION:=$(shell git describe --tags --dirty) +VERSION := $(shell git describe --tags --dirty) +# strip the first char of the tag if it's a `v` +VERSION := $(VERSION:v%=%) BUILD_TAGS:= -ldflags '-X $(PROJECT)/pkg/version.criContainerdVersion=$(VERSION)' all: binaries