]> source.dussan.org Git - gitea.git/commitdiff
Use GO variable in go-check target (#13146) (#13147)
authorE14 <1640391+E14@users.noreply.github.com>
Thu, 15 Oct 2020 04:14:22 +0000 (06:14 +0200)
committerGitHub <noreply@github.com>
Thu, 15 Oct 2020 04:14:22 +0000 (12:14 +0800)
Makefile

index 404ead6d1e1ca9f219b1b76e80580d84049cf31e..cd4f34c8c3eed49162651c5a3e4675663eff428f 100644 (file)
--- 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; \