Merge pull request #5232 from MichaelEischer/bump-go-version

Bump minimum go version to 1.22
This commit is contained in:
Michael Eischer 2025-02-03 21:14:57 +01:00 committed by GitHub
commit 7ab5bb6df4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 12 deletions

View File

@ -49,11 +49,6 @@ jobs:
os: ubuntu-latest
test_fuse: true
- job_name: Linux
go: 1.21.x
os: ubuntu-latest
test_fuse: true
name: ${{ matrix.job_name }} Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}

View File

@ -58,7 +58,7 @@ var config = Config{
Main: "./cmd/restic", // package name for the main package
DefaultBuildTags: []string{"selfupdate"}, // specify build tags which are always used
Tests: []string{"./..."}, // tests to run
MinVersion: GoVersion{Major: 1, Minor: 21, Patch: 0}, // minimum Go version supported
MinVersion: GoVersion{Major: 1, Minor: 22, Patch: 0}, // minimum Go version supported
}
// Config configures the build.

View File

@ -1,7 +1,9 @@
Change: Update dependencies and require Go 1.21 or newer
Change: Update dependencies and require Go 1.22 or newer
We have updated all dependencies. Since some libraries require newer Go standard
library features, support for Go 1.19 and 1.20 has been dropped, which means that
restic now requires at least Go 1.21 to build.
library features, support for Go 1.19, 1.20 and 1.21 has been dropped, which means
that restic now requires at least Go 1.22 to build.
This also disables support for TLS versions older than TLS 1.2.
https://github.com/restic/restic/pull/4938

View File

@ -284,7 +284,7 @@ From Source
***********
restic is written in the Go programming language and you need at least
Go version 1.21. Building restic may also work with older versions of Go,
Go version 1.22. 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.

4
go.mod
View File

@ -1,5 +1,7 @@
module github.com/restic/restic
go 1.22
require (
cloud.google.com/go/storage v1.43.0
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0
@ -81,5 +83,3 @@ require (
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
go 1.21