From 66d50b72e37deafc4359f7cd89a24272c22ac33b Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 27 Mar 2022 10:52:32 +0200 Subject: [PATCH] Require Go 1.15 or later The library github.com/golang-jwt/jwt/v4 requires the FillByte() method of *big.Int, so we're raising the minimum Go version to 1.15. --- .github/workflows/tests.yml | 6 ------ CONTRIBUTING.md | 4 ++-- changelog/unreleased/pr-3680 | 7 +++++++ doc/020_installation.rst | 2 +- go.mod | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 changelog/unreleased/pr-3680 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 52db14f3a..440110548 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,12 +55,6 @@ jobs: test_fuse: true install_verb: get - - job_name: Linux - go: 1.14.x - os: ubuntu-latest - test_fuse: true - install_verb: get - name: ${{ matrix.job_name }} Go ${{ matrix.go }} runs-on: ${{ matrix.os }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9c8fedf1b..02b6fa5a5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,8 +66,8 @@ Development Environment The repository contains the code written for restic in the directories `cmd/` and `internal/`. -Restic requires Go version 1.14 or later for compiling. Clone the repo (without -having `$GOPATH` set) and `cd` into the directory: +Make sure you have the minimum required Go version installed. Clone the repo +(without having `$GOPATH` set) and `cd` into the directory: $ unset GOPATH $ git clone https://github.com/restic/restic diff --git a/changelog/unreleased/pr-3680 b/changelog/unreleased/pr-3680 new file mode 100644 index 000000000..d2a363767 --- /dev/null +++ b/changelog/unreleased/pr-3680 @@ -0,0 +1,7 @@ +Change: Update dependencies and require Go 1.15 or newer + +We've updated most dependencies. Since some libraries require newer language +features we're dropping support for Go 1.14 and restic now requires at least Go +1.15 to build. + +https://github.com/restic/restic/issues/3680 diff --git a/doc/020_installation.rst b/doc/020_installation.rst index d02feb3d8..3b30d2643 100644 --- a/doc/020_installation.rst +++ b/doc/020_installation.rst @@ -274,7 +274,7 @@ From Source *********** restic is written in the Go programming language and you need at least -Go version 1.14. Building restic may also work with older versions of Go, +Go version 1.15. 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 e7f879bc9..b5d72874f 100644 --- a/go.mod +++ b/go.mod @@ -51,4 +51,4 @@ require ( gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) -go 1.14 +go 1.15