Bump minimum go version to 1.25

This commit is contained in:
Michael Eischer
2026-05-09 21:31:27 +02:00
parent 5b7df8135e
commit 6080c784e4
7 changed files with 18 additions and 15 deletions
+6 -6
View File
@@ -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
+1 -1
View File
@@ -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.
+6
View File
@@ -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
-5
View File
@@ -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
+1 -1
View File
@@ -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 <https://go.dev/doc/install>`__ guide of the Go project for
instructions how to install Go.
+1 -1
View File
@@ -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
+3 -1
View File
@@ -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