summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2021-08-17 03:09:44 -0400
committerGitHub <noreply@github.com>2021-08-17 10:09:44 +0300
commit0dc808212b9eb61b139703420683037db0e1e1db (patch)
treed83e93d9c9a411864b79b41da3ac660c1d0dc90c
parentb6508b872b172beb8201a8df457f1c17c41dd42f (diff)
downloadgitea-0dc808212b9eb61b139703420683037db0e1e1db.tar.gz
gitea-0dc808212b9eb61b139703420683037db0e1e1db.zip
release/v1.15: set min go version to min upstream supported go1.16 (#16710)
* release/v1.15: set min go version to min upstream supported 1.16 * update drone
-rw-r--r--.drone.yml2
-rw-r--r--Makefile4
-rw-r--r--docs/config.yaml2
3 files changed, 4 insertions, 4 deletions
diff --git a/.drone.yml b/.drone.yml
index d4585cb01d..5f26a4c287 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -84,7 +84,7 @@ steps:
- name: build-backend-no-gcc
pull: always
- image: golang:1.15 # this step is kept as the lowest version of golang that we support
+ image: golang:1.16 # this step is kept as the lowest version of golang that we support
environment:
GO111MODULE: on
GOPROXY: off
diff --git a/Makefile b/Makefile
index f028150375..bf3d93d3c8 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
COMMA := ,
XGO_VERSION := go-1.16.x
-MIN_GO_VERSION := 001015000
+MIN_GO_VERSION := 001016000
MIN_NODE_VERSION := 012017000
DOCKER_IMAGE ?= gitea/gitea
@@ -200,7 +200,7 @@ help:
go-check:
$(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.15 or greater to build. You can get it at https://golang.org/dl/"; \
+ echo "Gitea requires Go 1.16 or greater to build. You can get it at https://golang.org/dl/"; \
exit 1; \
fi
diff --git a/docs/config.yaml b/docs/config.yaml
index 2dfb4f81b6..a0f39987f0 100644
--- a/docs/config.yaml
+++ b/docs/config.yaml
@@ -19,7 +19,7 @@ params:
author: The Gitea Authors
website: https://docs.gitea.io
version: 1.14.6
- minGoVersion: 1.15
+ minGoVersion: 1.16
goVersion: 1.16
minNodeVersion: 12.17