diff options
author | Joe Chen <jc@unknwon.io> | 2022-03-16 12:18:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 12:18:27 +0800 |
commit | 39f64a1371cdb01e02aeeb04839d2689052ae1d3 (patch) | |
tree | 5d8cf0d34feceda30e03bf9dc9d41e0a96cc9947 | |
parent | 3539de754d935a0ff3c65b03f90c48c9bac5b4cd (diff) |
go: update required version to be 1.16 (#6850)
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | docs/dev/local_development.md | 6 | ||||
-rw-r--r-- | go.mod | 4 | ||||
-rw-r--r-- | gogs.go | 4 |
4 files changed, 8 insertions, 7 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 28b0a6b4..a25d29c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes to Gogs are documented in this file. - The default branch has been changed to `main`. [#6285](https://github.com/gogs/gogs/pull/6285) - MSSQL as database backend is deprecated, installation page no longer shows it as an option. Existing installations and manually craft configuration file continue to work. [#6295](https://github.com/gogs/gogs/pull/6295) - Use [Task](https://github.com/go-task/task) as the default build tool for development. [#6297](https://github.com/gogs/gogs/pull/6297) +- The required Go version to compile source code changed to 1.16. ### Fixed diff --git a/docs/dev/local_development.md b/docs/dev/local_development.md index 1b4f44b6..7309a02f 100644 --- a/docs/dev/local_development.md +++ b/docs/dev/local_development.md @@ -1,4 +1,4 @@ -# Getting started with developing Gogs +# Set up your development environment Gogs is written in [Go](https://golang.org/), please take [A Tour of Go](https://tour.golang.org/) if you haven't done so! @@ -21,9 +21,9 @@ 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.15 or higher) +- [Go](https://golang.org/doc/install) (v1.16 or higher) - [Less.js](http://lesscss.org/usage/#command-line-usage-installing) -- [Task](https://github.com/go-task/task) +- [Task](https://github.com/go-task/task) (v3) - Database upon your choice (pick one, we choose PostgreSQL in this document): - [PostgreSQL](https://wiki.postgresql.org/wiki/Detailed_installation_guides) (v9.6 or higher) - [MySQL](https://dev.mysql.com/downloads/mysql/) with `ENGINE=InnoDB` (v5.7 or higher) @@ -1,6 +1,6 @@ module gogs.io/gogs -go 1.14 +go 1.16 require ( github.com/Masterminds/semver/v3 v3.1.1 @@ -70,5 +70,5 @@ require ( xorm.io/xorm v0.8.0 ) -// +heroku goVersion go1.15 +// +heroku goVersion go1.16 // +heroku install ./ @@ -1,5 +1,5 @@ -//go:build go1.14 -// +build go1.14 +//go:build go1.16 +// +build go1.16 // Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style |