build: update to go1.20rc3 and make go1.17 the minimum required version

This commit is contained in:
Nick Craig-Wood 2023-01-12 12:16:00 +00:00
parent 88c0d78639
commit 1680c5af8f
4 changed files with 20 additions and 850 deletions

View File

@ -25,12 +25,12 @@ jobs:
strategy:
fail-fast: false
matrix:
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.17', 'go1.18']
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.18', 'go1.19']
include:
- job_name: linux
os: ubuntu-latest
go: '1.19'
go: '1.20.0-rc.3'
gotags: cmount
build_flags: '-include "^linux/"'
check: true
@ -41,14 +41,14 @@ jobs:
- job_name: linux_386
os: ubuntu-latest
go: '1.19'
go: '1.20.0-rc.3'
goarch: 386
gotags: cmount
quicktest: true
- job_name: mac_amd64
os: macos-11
go: '1.19'
go: '1.20.0-rc.3'
gotags: 'cmount'
build_flags: '-include "^darwin/amd64" -cgo'
quicktest: true
@ -57,14 +57,14 @@ jobs:
- job_name: mac_arm64
os: macos-11
go: '1.19'
go: '1.20.0-rc.3'
gotags: 'cmount'
build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib'
deploy: true
- job_name: windows
os: windows-latest
go: '1.19'
go: '1.20.0-rc.3'
gotags: cmount
cgo: '0'
build_flags: '-include "^windows/"'
@ -74,23 +74,23 @@ jobs:
- job_name: other_os
os: ubuntu-latest
go: '1.19'
go: '1.20.0-rc.3'
build_flags: '-exclude "^(windows/|darwin/|linux/)"'
compile_all: true
deploy: true
- job_name: go1.17
os: ubuntu-latest
go: '1.17'
quicktest: true
racequicktest: true
- job_name: go1.18
os: ubuntu-latest
go: '1.18'
quicktest: true
racequicktest: true
- job_name: go1.19
os: ubuntu-latest
go: '1.19'
quicktest: true
racequicktest: true
name: ${{ matrix.job_name }}
runs-on: ${{ matrix.os }}
@ -237,7 +237,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20.0-rc.3
check-latest: true
- name: Install govulncheck
@ -262,7 +262,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: 1.20.0-rc.3
- name: Go module cache
uses: actions/cache@v3

View File

@ -1,8 +1,8 @@
//go:build !go1.17
// +build !go1.17
//go:build !go1.18
// +build !go1.18
package fs
// Upgrade to Go version 1.17 to compile rclone - latest stable go
// Upgrade to Go version 1.18 to compile rclone - latest stable go
// compiler recommended.
func init() { Go_version_1_17_required_for_compilation() }
func init() { Go_version_1_18_required_for_compilation() }

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/rclone/rclone
go 1.17
go 1.18
require (
bazil.org/fuse v0.0.0-20221209211307-2abb8038c751

830
go.sum

File diff suppressed because it is too large Load Diff