From 559af54e663cb0c2bc6a0a6dc462a44a251f2c3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=9C=C9=B4=E1=B4=8B=C9=B4=E1=B4=A1=E1=B4=8F=C9=B4?= Date: Mon, 6 Apr 2020 15:15:03 +0800 Subject: [PATCH] build: require Go 1.14 for using `t.Cleanup` (#6069) --- CHANGELOG.md | 2 +- go.mod | 4 ++-- gogs.go | 2 +- internal/gitutil/{mock_test.go => mock.go} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename internal/gitutil/{mock_test.go => mock.go} (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbd6f942a..0313c1ecb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ All notable changes to Gogs are documented in this file. ### Changed -- The required Go version to compile source code changed to 1.13. +- The required Go version to compile source code changed to 1.14. - All assets are now embedded into binary and served from memory by default. Set `[server] LOAD_ASSETS_FROM_DISK = true` to load them from disk. [#5920](https://github.com/gogs/gogs/pull/5920) - Application and Go versions are removed from page footer and only show in the admin dashboard. - Build tag for running as Windows Service has been changed from `miniwinsvc` to `minwinsvc`. diff --git a/go.mod b/go.mod index a5bd2bc35..8cfc975e6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module gogs.io/gogs -go 1.13 +go 1.14 require ( github.com/bgentry/speakeasy v0.1.0 // indirect @@ -73,5 +73,5 @@ require ( xorm.io/xorm v0.8.0 ) -// +heroku goVersion go1.13 +// +heroku goVersion go1.14 // +heroku install ./ diff --git a/gogs.go b/gogs.go index 8ee85a32b..674288178 100644 --- a/gogs.go +++ b/gogs.go @@ -1,4 +1,4 @@ -// +build go1.13 +// +build go1.14 // Copyright 2014 The Gogs Authors. All rights reserved. // Use of this source code is governed by a MIT-style diff --git a/internal/gitutil/mock_test.go b/internal/gitutil/mock.go similarity index 100% rename from internal/gitutil/mock_test.go rename to internal/gitutil/mock.go