1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-03 18:26:51 +00:00

bump minimum go version to 1.22

This commit is contained in:
Michael Eischer 2025-02-02 15:05:47 +01:00
parent 536ebefff4
commit d71ddfb89b
5 changed files with 9 additions and 12 deletions

View file

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

View file

@ -58,7 +58,7 @@ var config = Config{
Main: "./cmd/restic", // package name for the main package Main: "./cmd/restic", // package name for the main package
DefaultBuildTags: []string{"selfupdate"}, // specify build tags which are always used DefaultBuildTags: []string{"selfupdate"}, // specify build tags which are always used
Tests: []string{"./..."}, // tests to run 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. // 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 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 library features, support for Go 1.19, 1.20 and 1.21 has been dropped, which means
restic now requires at least Go 1.21 to build. 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 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 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 but that's not supported. See the `Getting
started <https://go.dev/doc/install>`__ guide of the Go project for started <https://go.dev/doc/install>`__ guide of the Go project for
instructions how to install Go. instructions how to install Go.

4
go.mod
View file

@ -1,5 +1,7 @@
module github.com/restic/restic module github.com/restic/restic
go 1.22
require ( require (
cloud.google.com/go/storage v1.43.0 cloud.google.com/go/storage v1.43.0
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.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 google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect
) )
go 1.21