Merge pull request #5619 from restic/bump-go-version

bump minimum go version to 1.24
This commit is contained in:
Michael Eischer 2025-11-26 21:55:02 +01:00 committed by GitHub
commit 77374b5bf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 7 deletions

View file

@ -48,10 +48,6 @@ jobs:
go: 1.24.x
os: ubuntu-latest
test_fuse: true
- job_name: Linux
go: 1.23.x
os: ubuntu-latest
test_fuse: true
name: ${{ matrix.job_name }} Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}

View file

@ -60,7 +60,7 @@ var config = Config{
// see https://github.com/googleapis/google-cloud-go/issues/11448
DefaultBuildTags: []string{"selfupdate", "disable_grpc_modules"}, // specify build tags which are always used
Tests: []string{"./..."}, // tests to run
MinVersion: GoVersion{Major: 1, Minor: 23, Patch: 0}, // minimum Go version supported
MinVersion: GoVersion{Major: 1, Minor: 24, Patch: 0}, // minimum Go version supported
}
// Config configures the build.

View file

@ -0,0 +1,5 @@
Change: Update dependencies and require Go 1.24 or newer
We have updated all dependencies. Restic now requires Go 1.24 or newer to build.
https://github.com/restic/restic/pull/5619

View file

@ -315,7 +315,7 @@ From Source
***********
restic is written in the Go programming language and you need at least
Go version 1.23. Building restic may also work with older versions of Go,
Go version 1.24. Building restic may also work with older versions of Go,
but that's not supported. See the `Getting
started <https://go.dev/doc/install>`__ guide of the Go project for
instructions how to install Go.

2
go.mod
View file

@ -1,6 +1,6 @@
module github.com/restic/restic
go 1.23.0
go 1.24.0
// keep the old behavior for reparse points on windows until handling reparse points has been improved in restic
// https://forum.restic.net/t/windows-junction-backup-with-go1-23-or-later/8940