1
mirror of https://github.com/rclone/rclone synced 2025-03-30 15:56:10 +02:00

build: raise minimum go version to go1.15

This was necessary because go1.14 seems to have a modules related bug
which means it tries to build modules even though the uses of them are
all disabled with build constraints. This seems to be fixed in go1.15.
This commit is contained in:
Nick Craig-Wood 2021-11-10 15:40:36 +00:00
parent 3661791e82
commit c968c3e41c
3 changed files with 6 additions and 12 deletions
.github/workflows
docs/content
fs

@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
job_name: ['linux', 'mac_amd64', 'mac_arm64', 'windows_amd64', 'windows_386', 'other_os', 'go1.14', 'go1.15', 'go1.16']
job_name: ['linux', 'mac_amd64', 'mac_arm64', 'windows_amd64', 'windows_386', 'other_os', 'go1.15', 'go1.16']
include:
- job_name: linux
@ -83,12 +83,6 @@ jobs:
compile_all: true
deploy: true
- job_name: go1.14
os: ubuntu-latest
go: '1.14.x'
quicktest: true
racequicktest: true
- job_name: go1.15
os: ubuntu-latest
go: '1.15.x'

@ -190,7 +190,7 @@ kill %1
## Install from source ##
Make sure you have at least [Go](https://golang.org/) go1.14
Make sure you have at least [Go](https://golang.org/) go1.15
installed. [Download go](https://golang.org/dl/) if necessary. The
latest release is recommended. Then

@ -1,8 +1,8 @@
//go:build !go1.14
// +build !go1.14
//go:build !go1.15
// +build !go1.15
package fs
// Upgrade to Go version 1.14 to compile rclone - latest stable go
// Upgrade to Go version 1.15 to compile rclone - latest stable go
// compiler recommended.
func init() { Go_version_1_14_required_for_compilation() }
func init() { Go_version_1_15_required_for_compilation() }