diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d28d2e46f..647cb5de7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/build.go b/build.go index 5a4baf1c6..34bdebaf8 100644 --- a/build.go +++ b/build.go @@ -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. diff --git a/changelog/unreleased/pull-4938 b/changelog/unreleased/pull-4938 index 0fa876ca0..d95bca16d 100644 --- a/changelog/unreleased/pull-4938 +++ b/changelog/unreleased/pull-4938 @@ -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 diff --git a/doc/020_installation.rst b/doc/020_installation.rst index 8566c109e..a53888221 100644 --- a/doc/020_installation.rst +++ b/doc/020_installation.rst @@ -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 `__ guide of the Go project for instructions how to install Go. diff --git a/go.mod b/go.mod index e0b33d39d..fa1f1707f 100644 --- a/go.mod +++ b/go.mod @@ -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