diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-04-28 15:48:24 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-04-28 20:28:38 +0200 |
commit | cebe3a6b2fb91a4dbaa6bac3fe5ff5bccb52d019 (patch) | |
tree | 7fcec562769916a3127c63b89233383c94744ca9 /Makefile | |
parent | 91d64656a46848f1dceacbdf7f03677cd83d5aa0 (diff) | |
download | gitea-cebe3a6b2fb91a4dbaa6bac3fe5ff5bccb52d019.tar.gz gitea-cebe3a6b2fb91a4dbaa6bac3fe5ff5bccb52d019.zip |
Revert "Set VERSION from git once, in a variable (#1447)"
This reverts commit 410af6971b87ac5dc7ac198f538d8383c1f47a1f.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) |