From 67933008502a72d579f325584f3566535f63ccf1 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 7 May 2018 23:28:48 +0200 Subject: [PATCH] Raise minimum Go version to 1.9 The golang.org/sys/crypto library uses math/bits, which was only introduced in Go 1.9. --- .travis.yml | 4 ---- build.go | 2 +- changelog/unreleased/issue-1758 | 8 ++++++++ doc/020_installation.rst | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 changelog/unreleased/issue-1758 diff --git a/.travis.yml b/.travis.yml index 9ced66bf8..3ea8ecac3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,6 @@ sudo: false matrix: include: - - os: linux - go: "1.8.x" - env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 - - os: linux go: "1.9.x" env: RESTIC_TEST_FUSE=0 RESTIC_TEST_CLOUD_BACKENDS=0 diff --git a/build.go b/build.go index b7a5728dd..3d8a087d0 100644 --- a/build.go +++ b/build.go @@ -53,7 +53,7 @@ var config = Config{ "github.com/restic/restic/internal/...", "github.com/restic/restic/cmd/...", }, - MinVersion: GoVersion{Major: 1, Minor: 8, Patch: 0}, // minimum Go version supported + MinVersion: GoVersion{Major: 1, Minor: 9, Patch: 0}, // minimum Go version supported } // Config configures the build. diff --git a/changelog/unreleased/issue-1758 b/changelog/unreleased/issue-1758 new file mode 100644 index 000000000..e96b4469a --- /dev/null +++ b/changelog/unreleased/issue-1758 @@ -0,0 +1,8 @@ +Enhancement: Allow saving OneDrive folders in Windows + +Restic now contains a bugfix to two libraries, which allows saving OneDrive +folders in Windows. In order to use the newer versions of the libraries, the +minimal version required to compile restic is now Go 1.9. + +https://github.com/restic/restic/issues/1758 +https://github.com/restic/restic/pull/1765 diff --git a/doc/020_installation.rst b/doc/020_installation.rst index 6cab0c9a1..2bd1faae9 100644 --- a/doc/020_installation.rst +++ b/doc/020_installation.rst @@ -161,7 +161,7 @@ From Source *********** restic is written in the Go programming language and you need at least -Go version 1.8. Building restic may also work with older versions of Go, +Go version 1.9. 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.