From 16b185f97dfc0dedf149a91f0b9d1924faf47ee4 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Wed, 1 Nov 2023 23:06:24 -0400 Subject: [PATCH] build: remove support of Go 1.18 and 1.19 (#7590) --- CHANGELOG.md | 4 ++++ docs/dev/local_development.md | 2 +- go.mod | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d4d2866c..92d82a493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to Gogs are documented in this file. ## 0.14.0+dev (`main`) +### Changed + +- The required Go version to compile source code changed to 1.20. + ### Fixed - Submodules using `ssh://` protocol and a port number are not rendered correctly. [#4941](https://github.com/gogs/gogs/issues/4941) diff --git a/docs/dev/local_development.md b/docs/dev/local_development.md index a6cb61970..dac33ba1d 100644 --- a/docs/dev/local_development.md +++ b/docs/dev/local_development.md @@ -21,7 +21,7 @@ Gogs is built and runs as a single binary and meant to be cross platform. Theref Gogs has the following dependencies: - [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) (v1.8.3 or higher) -- [Go](https://golang.org/doc/install) (v1.18 or higher) +- [Go](https://golang.org/doc/install) (v1.20 or higher) - [Less.js](http://lesscss.org/usage/#command-line-usage-installing) - [Task](https://github.com/go-task/task) (v3) - [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) diff --git a/go.mod b/go.mod index e0a9df10d..31d7c6f97 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gogs.io/gogs -go 1.18 +go 1.20 require ( github.com/Masterminds/semver/v3 v3.2.1 @@ -139,5 +139,5 @@ require ( modernc.org/token v1.0.1 // indirect ) -// +heroku goVersion go1.18 +// +heroku goVersion go1.20 // +heroku install ./