mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:54:44 +01:00
Require go1.6 for building rclone
This is required because google.golang.org/grpc needs it.
This commit is contained in:
parent
98c2d2c41b
commit
17633f5460
@ -4,7 +4,6 @@ osx_image: xcode7.3
|
|||||||
os:
|
os:
|
||||||
- linux
|
- linux
|
||||||
go:
|
go:
|
||||||
- 1.5.4
|
|
||||||
- 1.6.4
|
- 1.6.4
|
||||||
- 1.7.4
|
- 1.7.4
|
||||||
- 1.8.1
|
- 1.8.1
|
||||||
|
2
Makefile
2
Makefile
@ -6,8 +6,6 @@ GO_VERSION := $(shell go version)
|
|||||||
GO_FILES := $(shell go list ./... | grep -v /vendor/ )
|
GO_FILES := $(shell go list ./... | grep -v /vendor/ )
|
||||||
GO_LATEST := $(findstring go1.8,$(GO_VERSION))
|
GO_LATEST := $(findstring go1.8,$(GO_VERSION))
|
||||||
BETA_URL := https://beta.rclone.org/$(TAG)/
|
BETA_URL := https://beta.rclone.org/$(TAG)/
|
||||||
# Only needed for Go 1.5
|
|
||||||
export GO15VENDOREXPERIMENT=1
|
|
||||||
|
|
||||||
.PHONY: rclone
|
.PHONY: rclone
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ Run `rclone config` to setup. See [rclone config docs](/docs/) for more details.
|
|||||||
|
|
||||||
## Install from source ##
|
## Install from source ##
|
||||||
|
|
||||||
Make sure you have at least [Go](https://golang.org/) 1.5 installed.
|
Make sure you have at least [Go](https://golang.org/) 1.6 installed.
|
||||||
Make sure your `GOPATH` is set, then:
|
Make sure your `GOPATH` is set, then:
|
||||||
|
|
||||||
go get -u -v github.com/ncw/rclone
|
go get -u -v github.com/ncw/rclone
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//+build !go1.5
|
//+build !go1.6
|
||||||
|
|
||||||
package fs
|
package fs
|
||||||
|
|
||||||
// Upgrade to Go version 1.5 to compile rclone - latest stable go
|
// Upgrade to Go version 1.6 to compile rclone - latest stable go
|
||||||
// compiler recommended.
|
// compiler recommended.
|
||||||
func init() { Go_version_1_5_required_for_compilation() }
|
func init() { Go_version_1_6_required_for_compilation() }
|
||||||
|
Loading…
Reference in New Issue
Block a user