Skip to content

Commit 5e29152

Browse files
committed
Revert "Set VERSION from git once, in a variable (#1447)"
This reverts commit 410af69.
1 parent fca7ddc commit 5e29152

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ JAVASCRIPTS :=
1414
GOFLAGS := -i -v
1515
EXTRA_GOFLAGS ?=
1616

17-
VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
18-
19-
LDFLAGS := -X "main.Version=$(VERSION)" -X "main.Tags=$(TAGS)"
17+
LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)"
2018

2119
PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell go list ./... | grep -v /vendor/))
2220
SOURCES ?= $(shell find . -name "*.go" -type f)

0 commit comments

Comments
 (0)