Skip to content

Commit bd7278d

Browse files
committed
build: update to go1.24rc1 and make go1.22 the minimum required version
1 parent 45ba81c commit bd7278d

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

.github/workflows/build.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.21', 'go1.22']
29+
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.22', 'go1.23']
3030

3131
include:
3232
- job_name: linux
3333
os: ubuntu-latest
34-
go: '>=1.23.0-rc.1'
34+
go: '>=1.24.0-rc.1'
3535
gotags: cmount
3636
build_flags: '-include "^linux/"'
3737
check: true
@@ -42,14 +42,14 @@ jobs:
4242

4343
- job_name: linux_386
4444
os: ubuntu-latest
45-
go: '>=1.23.0-rc.1'
45+
go: '>=1.24.0-rc.1'
4646
goarch: 386
4747
gotags: cmount
4848
quicktest: true
4949

5050
- job_name: mac_amd64
5151
os: macos-latest
52-
go: '>=1.23.0-rc.1'
52+
go: '>=1.24.0-rc.1'
5353
gotags: 'cmount'
5454
build_flags: '-include "^darwin/amd64" -cgo'
5555
quicktest: true
@@ -58,14 +58,14 @@ jobs:
5858

5959
- job_name: mac_arm64
6060
os: macos-latest
61-
go: '>=1.23.0-rc.1'
61+
go: '>=1.24.0-rc.1'
6262
gotags: 'cmount'
6363
build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib'
6464
deploy: true
6565

6666
- job_name: windows
6767
os: windows-latest
68-
go: '>=1.23.0-rc.1'
68+
go: '>=1.24.0-rc.1'
6969
gotags: cmount
7070
cgo: '0'
7171
build_flags: '-include "^windows/"'
@@ -75,20 +75,20 @@ jobs:
7575

7676
- job_name: other_os
7777
os: ubuntu-latest
78-
go: '>=1.23.0-rc.1'
78+
go: '>=1.24.0-rc.1'
7979
build_flags: '-exclude "^(windows/|darwin/|linux/)"'
8080
compile_all: true
8181
deploy: true
8282

83-
- job_name: go1.21
83+
- job_name: go1.22
8484
os: ubuntu-latest
85-
go: '1.21'
85+
go: '1.22'
8686
quicktest: true
8787
racequicktest: true
8888

89-
- job_name: go1.22
89+
- job_name: go1.23
9090
os: ubuntu-latest
91-
go: '1.22'
91+
go: '1.23'
9292
quicktest: true
9393
racequicktest: true
9494

@@ -311,7 +311,7 @@ jobs:
311311
- name: Set up Go
312312
uses: actions/setup-go@v5
313313
with:
314-
go-version: '>=1.23.0-rc.1'
314+
go-version: '>=1.24.0-rc.1'
315315

316316
- name: Set global environment variables
317317
shell: bash

docs/content/install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Note that this is controlled by [community maintainer](https://github.com/bouken
333333
## Source installation {#source}
334334

335335
Make sure you have git and [Go](https://golang.org/) installed.
336-
Go version 1.18 or newer is required, the latest release is recommended.
336+
Go version 1.22 or newer is required, the latest release is recommended.
337337
You can get it from your package manager, or download it from
338338
[golang.org/dl](https://golang.org/dl/). Then you can run the following:
339339

fs/versioncheck.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//go:build !go1.21
1+
//go:build !go1.22
22

33
package fs
44

5-
// Upgrade to Go version 1.21 to compile rclone - latest stable go
5+
// Upgrade to Go version 1.22 to compile rclone - latest stable go
66
// compiler recommended.
7-
func init() { Go_version_1_21_required_for_compilation() }
7+
func init() { Go_version_1_22_required_for_compilation() }

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/rclone/rclone
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
bazil.org/fuse v0.0.0-20230120002735-62a210ff1fd5

0 commit comments

Comments
 (0)