From 52084d1bae5f72efee7e14cbb67e1a3145688e0c Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 7 Jul 2020 15:55:28 -0700 Subject: [PATCH] docs: update install docs to no longer use go get Fixes #4444. --- docs/INSTALL.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 2a24926c..8214bc5f 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -104,11 +104,25 @@ With the preliminary steps completed, to install `lnd`, `lncli`, and all related dependencies run the following commands: ``` -go get -d github.com/lightningnetwork/lnd -cd $GOPATH/src/github.com/lightningnetwork/lnd -make && make install +git clone https://github.com/lightningnetwork/lnd +cd lnd +make install ``` +The command above will install the current _master_ branch of `lnd`. If you +wish to install a tagged release of `lnd` (as the master branch can at times be +unstable), then [visit then release page to locate the latest +release](https://github.com/lightningnetwork/lnd/releases). Assuming the name +of the release is `v0.x.x`, then you can compile this release from source with +a small modification to the above command: +``` +git clone https://github.com/lightningnetwork/lnd +cd lnd +git checkout v0.x.x +make install +``` + + **NOTE**: Our instructions still use the `$GOPATH` directory from prior versions of Go, but with Go 1.12, it's now possible for `lnd` to live _anywhere_ on your file system.