Browse Source

build: remove support of Go 1.18 and 1.19 (#7590)

Joe Chen 11 months ago
parent
commit
16b185f97d
3 changed files with 7 additions and 3 deletions
  1. 4 0
      CHANGELOG.md
  2. 1 1
      docs/dev/local_development.md
  3. 2 2
      go.mod

+ 4 - 0
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)

+ 1 - 1
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)

+ 2 - 2
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 ./