docs: update install docs to no longer use go get

Fixes #4444.
This commit is contained in:
Olaoluwa Osuntokun 2020-07-07 15:55:28 -07:00
parent 60446494e9
commit 52084d1bae
No known key found for this signature in database
GPG Key ID: BC13F65E2DC84465

@ -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.