go: update required version to be 1.16 ()

pull/6852/head
Joe Chen 2022-03-16 12:18:27 +08:00 committed by GitHub
parent 3539de754d
commit 39f64a1371
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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)

4
go.mod
View File

@ -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 ./

View File

@ -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