build: update to go1.27 and make go1.26 the minimum required version

This commit is contained in:
Nick Craig-Wood
2026-08-20 12:16:48 +01:00
parent ec3a95c279
commit e189f38122
4 changed files with 16 additions and 16 deletions
+11 -11
View File
@@ -32,12 +32,12 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.25'] job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.26']
include: include:
- job_name: linux - job_name: linux
os: ubuntu-latest os: ubuntu-latest
go: '~1.26.6' go: '~1.27.0'
gotags: cmount gotags: cmount
build_flags: '-include "^linux/"' build_flags: '-include "^linux/"'
check: true check: true
@@ -48,14 +48,14 @@ jobs:
- job_name: linux_386 - job_name: linux_386
os: ubuntu-latest os: ubuntu-latest
go: '~1.26.6' go: '~1.27.0'
goarch: 386 goarch: 386
gotags: cmount gotags: cmount
quicktest: true quicktest: true
- job_name: mac_amd64 - job_name: mac_amd64
os: macos-latest os: macos-latest
go: '~1.26.6' go: '~1.27.0'
gotags: 'cmount' gotags: 'cmount'
build_flags: '-include "^darwin/amd64" -cgo' build_flags: '-include "^darwin/amd64" -cgo'
quicktest: true quicktest: true
@@ -64,14 +64,14 @@ jobs:
- job_name: mac_arm64 - job_name: mac_arm64
os: macos-latest os: macos-latest
go: '~1.26.6' go: '~1.27.0'
gotags: 'cmount' gotags: 'cmount'
build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib' build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib'
deploy: true deploy: true
- job_name: windows - job_name: windows
os: windows-latest os: windows-latest
go: '~1.26.6' go: '~1.27.0'
gotags: cmount gotags: cmount
cgo: '0' cgo: '0'
build_flags: '-include "^windows/"' build_flags: '-include "^windows/"'
@@ -81,14 +81,14 @@ jobs:
- job_name: other_os - job_name: other_os
os: ubuntu-latest os: ubuntu-latest
go: '~1.26.6' go: '~1.27.0'
build_flags: '-exclude "^(windows/|darwin/|linux/)"' build_flags: '-exclude "^(windows/|darwin/|linux/)"'
compile_all: true compile_all: true
deploy: true deploy: true
- job_name: go1.25 - job_name: go1.26
os: ubuntu-latest os: ubuntu-latest
go: '~1.25.13' go: '~1.26.6'
quicktest: true quicktest: true
racequicktest: true racequicktest: true
@@ -283,7 +283,7 @@ jobs:
id: setup-go id: setup-go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: '~1.26.6' go-version: '~1.27.0'
check-latest: true check-latest: true
cache: false cache: false
@@ -398,7 +398,7 @@ jobs:
id: setup-go id: setup-go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
with: with:
go-version: '~1.26.6' go-version: '~1.27.0'
# Caching is handled explicitly below to share the module cache # Caching is handled explicitly below to share the module cache
# with the other jobs - see the build job for the rationale. # with the other jobs - see the build job for the rationale.
cache: false cache: false
+1 -1
View File
@@ -380,7 +380,7 @@ not the rclone developers so it may be out of date. Its current version is as be
## Source installation {#source} ## Source installation {#source}
Make sure you have git and [Go](https://golang.org/) installed. Make sure you have git and [Go](https://golang.org/) installed.
Go version 1.25 or newer is required, the latest release is recommended. Go version 1.26 or newer is required, the latest release is recommended.
You can get it from your package manager, or download it from You can get it from your package manager, or download it from
[golang.org/dl](https://golang.org/dl/). Then you can run the following: [golang.org/dl](https://golang.org/dl/). Then you can run the following:
+3 -3
View File
@@ -1,7 +1,7 @@
//go:build !go1.25 //go:build !go1.26
package fs package fs
// Upgrade to Go version 1.25 to compile rclone - latest stable go // Upgrade to Go version 1.26 to compile rclone - latest stable go
// compiler recommended. // compiler recommended.
func init() { Go_version_1_25_required_for_compilation() } func init() { Go_version_1_26_required_for_compilation() }
+1 -1
View File
@@ -1,6 +1,6 @@
module github.com/rclone/rclone module github.com/rclone/rclone
go 1.25.0 go 1.26.0
godebug x509negativeserial=1 godebug x509negativeserial=1