Skip to content

Commit

Permalink
Revert "Set VERSION from git once, in a variable (#1447)"
Browse files Browse the repository at this point in the history
This reverts commit 410af69.
  • Loading branch information
bkcsoft committed Apr 28, 2017
1 parent 91d6465 commit cebe3a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cebe3a6

Please sign in to comment.