mirror of https://github.com/restic/restic.git
Merge pull request #5232 from MichaelEischer/bump-go-version
Bump minimum go version to 1.22
This commit is contained in:
commit
7ab5bb6df4
|
@ -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 }}
|
||||
|
||||
|
|
2
build.go
2
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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue