From 6080c784e4645a746f44673b3e3f8e962e5c5763 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 9 May 2026 21:31:27 +0200 Subject: [PATCH] Bump minimum go version to 1.25 --- .github/workflows/tests.yml | 12 ++++++------ build.go | 2 +- changelog/unreleased/pull-21796 | 6 ++++++ changelog/unreleased/pull-4938 | 5 ----- doc/020_installation.rst | 2 +- docker/Dockerfile | 2 +- go.mod | 4 +++- 7 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 changelog/unreleased/pull-21796 delete mode 100644 changelog/unreleased/pull-4938 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d6cfc9405..54ddb627b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ permissions: contents: read env: - latest_go: "1.25.x" + latest_go: "1.26.x" GO111MODULE: on jobs: @@ -23,29 +23,29 @@ jobs: # list of jobs to run: include: - job_name: Windows - go: 1.25.x + go: 1.26.x os: windows-latest - job_name: macOS - go: 1.25.x + go: 1.26.x os: macOS-latest test_fuse: false - job_name: Linux - go: 1.25.x + go: 1.26.x os: ubuntu-latest test_cloud_backends: true test_fuse: true check_changelog: true - job_name: Linux (race) - go: 1.25.x + go: 1.26.x os: ubuntu-latest test_fuse: true test_opts: "-race" - job_name: Linux - go: 1.24.x + go: 1.25.x os: ubuntu-latest test_fuse: true diff --git a/build.go b/build.go index 94992dde4..a1447d9b0 100644 --- a/build.go +++ b/build.go @@ -59,7 +59,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: 24, Patch: 0}, // minimum Go version supported + MinVersion: GoVersion{Major: 1, Minor: 25, Patch: 0}, // minimum Go version supported } // Config configures the build. diff --git a/changelog/unreleased/pull-21796 b/changelog/unreleased/pull-21796 new file mode 100644 index 000000000..1d559f9d7 --- /dev/null +++ b/changelog/unreleased/pull-21796 @@ -0,0 +1,6 @@ +Change: Update dependencies and require Go 1.25 or newer + +We have updated all dependencies. Restic now requires Go 1.25 or newer to build. + +https://github.com/restic/restic/pull/21796 +https://github.com/restic/restic/pull/5619 diff --git a/changelog/unreleased/pull-4938 b/changelog/unreleased/pull-4938 deleted file mode 100644 index 26eae0b57..000000000 --- a/changelog/unreleased/pull-4938 +++ /dev/null @@ -1,5 +0,0 @@ -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 1c41aeb76..03057b5f8 100644 --- a/doc/020_installation.rst +++ b/doc/020_installation.rst @@ -295,7 +295,7 @@ From Source *********** restic is written in the Go programming language and you need at least -Go version 1.24. Building restic may also work with older versions of Go, +Go version 1.25. 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/docker/Dockerfile b/docker/Dockerfile index a0cc60c92..22629761f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.25-alpine AS builder +FROM golang:1.26-alpine AS builder WORKDIR /go/src/github.com/restic/restic diff --git a/go.mod b/go.mod index 78c582327..a0d7fe2b4 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,8 @@ module github.com/restic/restic -go 1.24.0 +go 1.25.0 + +toolchain go1.25.10 // 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