From 4afea1ebafc0d26292fc1f4bac373c7abbb2801b Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 27 Jul 2020 11:47:46 +0100 Subject: [PATCH] docs: update install from source instructions This has changed post Go modules. In particular it recommends against the go get `-u` flag. See: https://forum.rclone.org/t/install-from-source-go-get-errors/18114 --- docs/content/install.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/content/install.md b/docs/content/install.md index 1bfdd74b4..2faf957d2 100644 --- a/docs/content/install.md +++ b/docs/content/install.md @@ -183,14 +183,23 @@ latest release is recommended. Then go build ./rclone version -This will leave you a checked out version of rclone you can modify. +This will leave you a checked out version of rclone you can modify and +send pull requests with. If you use `make` instead of `go build` then +the rclone build will have the correct version information in it. -You can also build rclone with: +You can also build the latest stable rclone with: - go get -u -v github.com/rclone/rclone + go get github.com/rclone/rclone -and this will build the binary in `$GOPATH/bin` (`~/go/bin/rclone` by -default) after downloading the source to the go module cache.. +or the latest version (equivalent to the beta) with + + go get github.com/rclone/rclone@master + +These will build the binary in `$(go env GOPATH)/bin` +(`~/go/bin/rclone` by default) after downloading the source to the go +module cache. Note - do **not** use the `-u` flag here. This causes go +to try to update the depencencies that rclone uses and sometimes these +don't work with the current version of rclone. ## Installation with Ansible ##