From 39f64a1371cdb01e02aeeb04839d2689052ae1d3 Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Wed, 16 Mar 2022 12:18:27 +0800 Subject: go: update required version to be 1.16 (#6850) --- CHANGELOG.md | 1 + docs/dev/local_development.md | 6 +++--- go.mod | 4 ++-- 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) diff --git a/go.mod b/go.mod index 7e82646a..884e753b 100644 --- a/go.mod +++ b/go.mod @@ -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 ./ diff --git a/gogs.go b/gogs.go index c602a95a..dc7f1a17 100644 --- a/gogs.go +++ b/gogs.go @@ -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 -- cgit v1.2.3