summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorE14 <1640391+E14@users.noreply.github.com>2020-10-15 06:14:22 +0200
committerGitHub <noreply@github.com>2020-10-15 12:14:22 +0800
commitc962518cc2987557f6da24e900b4563149feccfc (patch)
tree4313922f6af662c221953084456be35390d292bd /Makefile
parente4a3785218a0725f45b7bbb1bcaf1478a8310c6c (diff)
downloadgitea-c962518cc2987557f6da24e900b4563149feccfc.tar.gz
gitea-c962518cc2987557f6da24e900b4563149feccfc.zip
Use GO variable in go-check target (#13146) (#13147)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 404ead6d1e..cd4f34c8c3 100644
--- a/Makefile
+++ b/Makefile
@@ -186,7 +186,7 @@ help:
.PHONY: go-check
go-check:
- $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.[0-9.]+' | tr '.' ' ');))
+ $(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell $(GO) version | grep -Eo '[0-9]+\.[0-9.]+' | tr '.' ' ');))
@if [ "$(GO_VERSION)" -lt "$(MIN_GO_VERSION)" ]; then \
echo "Gitea requires Go 1.13 or greater to build. You can get it at https://golang.org/dl/"; \
exit 1; \