We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a78a026 commit 410af69Copy full SHA for 410af69
Makefile
@@ -14,7 +14,9 @@ JAVASCRIPTS :=
14
GOFLAGS := -i -v
15
EXTRA_GOFLAGS ?=
16
17
-LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)"
+VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
18
+
19
+LDFLAGS := -X "main.Version=$(VERSION)" -X "main.Tags=$(TAGS)"
20
21
PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell go list ./... | grep -v /vendor/))
22
SOURCES ?= $(shell find . -name "*.go" -type f)
0 commit comments