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

This commit is contained in:
Nick Craig-Wood
2025-08-13 13:05:27 +01:00
parent 8a952583a5
commit c3f721755d
5 changed files with 17 additions and 17 deletions

View File

@@ -29,12 +29,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.23'] job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.24']
include: include:
- job_name: linux - job_name: linux
os: ubuntu-latest os: ubuntu-latest
go: '>=1.24.0-rc.1' go: '>=1.25.0-rc.1'
gotags: cmount gotags: cmount
build_flags: '-include "^linux/"' build_flags: '-include "^linux/"'
check: true check: true
@@ -45,14 +45,14 @@ jobs:
- job_name: linux_386 - job_name: linux_386
os: ubuntu-latest os: ubuntu-latest
go: '>=1.24.0-rc.1' go: '>=1.25.0-rc.1'
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.24.0-rc.1' go: '>=1.25.0-rc.1'
gotags: 'cmount' gotags: 'cmount'
build_flags: '-include "^darwin/amd64" -cgo' build_flags: '-include "^darwin/amd64" -cgo'
quicktest: true quicktest: true
@@ -61,14 +61,14 @@ jobs:
- job_name: mac_arm64 - job_name: mac_arm64
os: macos-latest os: macos-latest
go: '>=1.24.0-rc.1' go: '>=1.25.0-rc.1'
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.24.0-rc.1' go: '>=1.25.0-rc.1'
gotags: cmount gotags: cmount
cgo: '0' cgo: '0'
build_flags: '-include "^windows/"' build_flags: '-include "^windows/"'
@@ -78,14 +78,14 @@ jobs:
- job_name: other_os - job_name: other_os
os: ubuntu-latest os: ubuntu-latest
go: '>=1.24.0-rc.1' go: '>=1.25.0-rc.1'
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.23 - job_name: go1.24
os: ubuntu-latest os: ubuntu-latest
go: '1.23' go: '1.24'
quicktest: true quicktest: true
racequicktest: true racequicktest: true
@@ -224,7 +224,7 @@ jobs:
id: setup-go id: setup-go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '>=1.23.0-rc.1' go-version: '>=1.24.0-rc.1'
check-latest: true check-latest: true
cache: false cache: false
@@ -312,7 +312,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '>=1.24.0-rc.1' go-version: '>=1.25.0-rc.1'
- name: Set global environment variables - name: Set global environment variables
run: | run: |

View File

@@ -18,7 +18,7 @@ image](https://securebuild.com/images/rclone) through our partner
| OS | Minimum Version | | OS | Minimum Version |
|:-------:|:-------:| |:-------:|:-------:|
| Linux | Kernel 3.2 | | Linux | Kernel 3.2 |
| macOS | 11 (Big Sur) | | macOS | 12 (Monterey) |
| Windows | 10, Server 2016 | | Windows | 10, Server 2016 |
| FreeBSD | 12.2 | | FreeBSD | 12.2 |
| OpenBSD | 6.9 | | OpenBSD | 6.9 |

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.22 or newer is required, the latest release is recommended. Go version 1.24 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:

View File

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

2
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/rclone/rclone module github.com/rclone/rclone
go 1.23.0 go 1.24.0
require ( require (
bazil.org/fuse v0.0.0-20230120002735-62a210ff1fd5 bazil.org/fuse v0.0.0-20230120002735-62a210ff1fd5