From 9d3f6cd2540c968d763d034d2c2179f526a2cc35 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Tue, 10 Sep 2019 09:30:39 -0300 Subject: [PATCH] Updated makefile to set version from git tag --- src/go/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/Makefile b/src/go/Makefile index bce46663..aced27e6 100644 --- a/src/go/Makefile +++ b/src/go/Makefile @@ -1,6 +1,6 @@ GO := go pkgs = $(shell find . -type d -name "pt-*" -exec basename {} \;) -VERSION="3.0.13" +VERSION=$(shell git describe --abbrev=0 --tags) BUILD=$(shell date +%FT%T%z) GOVERSION=$(shell go version | cut --delimiter=" " -f3) COMMIT=$(shell git rev-list -1 HEAD)