Pārlūkot izejas kodu

Use GO variable in go-check target (#13146) (#13147)

tags/v1.15.0-dev
E14 pirms 3 gadiem
vecāks
revīzija
c962518cc2
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Makefile

+ 1
- 1
Makefile Parādīt failu

@@ -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; \

Notiek ielāde…
Atcelt
Saglabāt