|
@ -26,7 +26,7 @@ HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" ) |
|
|
COMMA := , |
|
|
COMMA := , |
|
|
|
|
|
|
|
|
XGO_VERSION := go-1.15.x |
|
|
XGO_VERSION := go-1.15.x |
|
|
MIN_GO_VERSION := 001012000 |
|
|
|
|
|
|
|
|
MIN_GO_VERSION := 001013000 |
|
|
MIN_NODE_VERSION := 010013000 |
|
|
MIN_NODE_VERSION := 010013000 |
|
|
|
|
|
|
|
|
DOCKER_IMAGE ?= gitea/gitea |
|
|
DOCKER_IMAGE ?= gitea/gitea |
|
@ -186,7 +186,7 @@ help: |
|
|
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 \
|
|
|
@if [ "$(GO_VERSION)" -lt "$(MIN_GO_VERSION)" ]; then \
|
|
|
echo "Gitea requires Go 1.12 or greater to build. You can get it at https://golang.org/dl/"; \
|
|
|
|
|
|
|
|
|
echo "Gitea requires Go 1.13 or greater to build. You can get it at https://golang.org/dl/"; \
|
|
|
exit 1; \
|
|
|
exit 1; \
|
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|