diff options
author | E14 <1640391+E14@users.noreply.github.com> | 2020-10-15 06:14:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-15 12:14:22 +0800 |
commit | c962518cc2987557f6da24e900b4563149feccfc (patch) | |
tree | 4313922f6af662c221953084456be35390d292bd /Makefile | |
parent | e4a3785218a0725f45b7bbb1bcaf1478a8310c6c (diff) | |
download | gitea-c962518cc2987557f6da24e900b4563149feccfc.tar.gz gitea-c962518cc2987557f6da24e900b4563149feccfc.zip |
Use GO variable in go-check target (#13146) (#13147)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; \ |