Skip to content

Commit d10a668

Browse files
Make the version within makefile overwriteable (#6080)
Fix #1173
1 parent 0b94f10 commit d10a668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ EXTRA_GOFLAGS ?=
2525

2626
ifneq ($(DRONE_TAG),)
2727
VERSION ?= $(subst v,,$(DRONE_TAG))
28-
GITEA_VERSION := $(VERSION)
28+
GITEA_VERSION ?= $(VERSION)
2929
else
3030
ifneq ($(DRONE_BRANCH),)
3131
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
3232
else
3333
VERSION ?= master
3434
endif
35-
GITEA_VERSION := $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
35+
GITEA_VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
3636
endif
3737

3838
LDFLAGS := -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"

0 commit comments

Comments
 (0)