1
0
mirror of https://github.com/rclone/rclone.git synced 2026-02-19 02:43:32 +00:00

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

This commit is contained in:
Nick Craig-Wood
2026-02-18 09:48:58 +00:00
parent 391661fdb4
commit f14945f9c1
4 changed files with 16 additions and 16 deletions

View File

@@ -29,12 +29,12 @@ jobs:
strategy:
fail-fast: false
matrix:
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.24']
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.25']
include:
- job_name: linux
os: ubuntu-latest
go: '~1.25.7'
go: '~1.26.0'
gotags: cmount
build_flags: '-include "^linux/"'
check: true
@@ -45,14 +45,14 @@ jobs:
- job_name: linux_386
os: ubuntu-latest
go: '~1.25.7'
go: '~1.26.0'
goarch: 386
gotags: cmount
quicktest: true
- job_name: mac_amd64
os: macos-latest
go: '~1.25.7'
go: '~1.26.0'
gotags: 'cmount'
build_flags: '-include "^darwin/amd64" -cgo'
quicktest: true
@@ -61,14 +61,14 @@ jobs:
- job_name: mac_arm64
os: macos-latest
go: '~1.25.7'
go: '~1.26.0'
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.25.7'
go: '~1.26.0'
gotags: cmount
cgo: '0'
build_flags: '-include "^windows/"'
@@ -78,14 +78,14 @@ jobs:
- job_name: other_os
os: ubuntu-latest
go: '~1.25.7'
go: '~1.26.0'
build_flags: '-exclude "^(windows/|darwin/|linux/)"'
compile_all: true
deploy: true
- job_name: go1.24
- job_name: go1.25
os: ubuntu-latest
go: '1.24'
go: '~1.25.7'
quicktest: true
racequicktest: true
@@ -224,7 +224,7 @@ jobs:
id: setup-go
uses: actions/setup-go@v6
with:
go-version: '~1.24.0'
go-version: '~1.26.0'
check-latest: true
cache: false
@@ -315,7 +315,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '~1.25.7'
go-version: '~1.26.0'
- name: Set global environment variables
run: |

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}
Make sure you have git and [Go](https://golang.org/) installed.
Go version 1.24 or newer is required, the latest release is recommended.
Go version 1.25 or newer is required, the latest release is recommended.
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:

View File

@@ -1,7 +1,7 @@
//go:build !go1.24
//go:build !go1.25
package fs
// Upgrade to Go version 1.24 to compile rclone - latest stable go
// Upgrade to Go version 1.25 to compile rclone - latest stable go
// compiler recommended.
func init() { Go_version_1_24_required_for_compilation() }
func init() { Go_version_1_25_required_for_compilation() }

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/rclone/rclone
go 1.24.4
go 1.25.0
godebug x509negativeserial=1