diff options
Diffstat (limited to 'community/gitea/allow-to-set-version.patch')
-rw-r--r-- | community/gitea/allow-to-set-version.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/community/gitea/allow-to-set-version.patch b/community/gitea/allow-to-set-version.patch index 4be917c846..d5f609ebb3 100644 --- a/community/gitea/allow-to-set-version.patch +++ b/community/gitea/allow-to-set-version.patch @@ -1,8 +1,8 @@ ---- ./Makefile.orig -+++ ./Makefile -@@ -11,7 +11,11 @@ - STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less) - JAVASCRIPTS := +--- a/Makefile ++++ b/Makefile +@@ -23,7 +23,11 @@ + GOFLAGS := -i -v + EXTRA_GOFLAGS ?= -LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')" -X "main.Tags=$(TAGS)" +ifeq ($(origin VERSION), undefined) @@ -11,5 +11,5 @@ + +LDFLAGS += -X "main.Version=$(VERSION)" - PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell go list ./... | grep -v /vendor/)) + PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations,$(shell $(GO) list ./... | grep -v /vendor/)) SOURCES ?= $(shell find . -name "*.go" -type f) |