From cebe3a6b2fb91a4dbaa6bac3fe5ff5bccb52d019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Fri, 28 Apr 2017 15:48:24 +0200 Subject: [PATCH] Revert "Set VERSION from git once, in a variable (#1447)" This reverts commit 410af6971b87ac5dc7ac198f538d8383c1f47a1f. --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 93ca44818d..6701178b7f 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,7 @@ JAVASCRIPTS := GOFLAGS := -i -v EXTRA_GOFLAGS ?= -VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//') - -LDFLAGS := -X "main.Version=$(VERSION)" -X "main.Tags=$(TAGS)" +LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)" PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell go list ./... | grep -v /vendor/)) SOURCES ?= $(shell find . -name "*.go" -type f)