Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-10-12 16:42:12 +0300
committerStan Hu <stanhu@gmail.com>2018-10-12 16:42:12 +0300
commitaf714e5dae4b516f8ad0b14d594969aaef76e0a1 (patch)
tree14b5d58237ed22099ecfbf961e147ad9d2f5ea92 /Makefile.internal.mk
parentd33590ec85ed14ba7aaa824890ef562ff9967d7d (diff)
Fix version string not showing properly
Due to a typo, the output of `gitlab-pages -version` was always `dev` instead of the actual version. The variable name is VERSION, not Version. Closes https://gitlab.com/gitlab-org/gitlab-pages/issues/140
Diffstat (limited to 'Makefile.internal.mk')
-rw-r--r--Makefile.internal.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.internal.mk b/Makefile.internal.mk
index 1cbb09ed..e7d0e8fe 100644
--- a/Makefile.internal.mk
+++ b/Makefile.internal.mk
@@ -7,7 +7,7 @@ ifneq (v$(VERSION),$(LAST_TAG))
VERSION := $(shell echo $(VERSION)~beta.$(COMMITS).g$(REVISION))
endif
-VERSION_FLAGS := -ldflags='-X "main.Version=$(VERSION)" -X "main.REVISION=$(REVISION)"'
+VERSION_FLAGS := -ldflags='-X "main.VERSION=$(VERSION)" -X "main.REVISION=$(REVISION)"'
# cd into the GOPATH to workaround ./... not following symlinks
_allpackages = $(shell ( cd $(CURDIR)/.GOPATH/src/$(IMPORT_PATH) && \