From 7696e4b495f1906b6cbc0cf9c63716df9e715aa3 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Wed, 26 Nov 2025 21:33:40 +0100 Subject: [PATCH] bump minimum go version to 1.24 --- .github/workflows/tests.yml | 4 ---- build.go | 2 +- changelog/unreleased/pull-4938 | 5 +++++ doc/020_installation.rst | 2 +- go.mod | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 changelog/unreleased/pull-4938 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 396d04ee9..30dc0fbe8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/build.go b/build.go index e6237bf21..044a60ff3 100644 --- a/build.go +++ b/build.go @@ -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. diff --git a/changelog/unreleased/pull-4938 b/changelog/unreleased/pull-4938 new file mode 100644 index 000000000..26eae0b57 --- /dev/null +++ b/changelog/unreleased/pull-4938 @@ -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 diff --git a/doc/020_installation.rst b/doc/020_installation.rst index f3c0b40b0..0b94c62ba 100644 --- a/doc/020_installation.rst +++ b/doc/020_installation.rst @@ -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 `__ guide of the Go project for instructions how to install Go. diff --git a/go.mod b/go.mod index bd4022ae5..57ee1416c 100644 --- a/go.mod +++ b/go.mod @@ -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