Skip to content

Commit c962518

Browse files
authored
Use GO variable in go-check target (#13146) (#13147)
1 parent e4a3785 commit c962518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ help:
186186

187187
.PHONY: go-check
188188
go-check:
189-
$(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell go version | grep -Eo '[0-9]+\.[0-9.]+' | tr '.' ' ');))
189+
$(eval GO_VERSION := $(shell printf "%03d%03d%03d" $(shell $(GO) version | grep -Eo '[0-9]+\.[0-9.]+' | tr '.' ' ');))
190190
@if [ "$(GO_VERSION)" -lt "$(MIN_GO_VERSION)" ]; then \
191191
echo "Gitea requires Go 1.13 or greater to build. You can get it at https://golang.org/dl/"; \
192192
exit 1; \

0 commit comments

Comments
 (0)