Skip to content

Commit 52084d1

Browse files
committed
docs: update install docs to no longer use go get
Fixes lightningnetwork#4444.
1 parent 6044649 commit 52084d1

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

docs/INSTALL.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,24 @@
104104
With the preliminary steps completed, to install `lnd`, `lncli`, and all
105105
related dependencies run the following commands:
106106
```
107-
go get -d github.com/lightningnetwork/lnd
108-
cd $GOPATH/src/github.com/lightningnetwork/lnd
109-
make && make install
107+
git clone https://github.com/lightningnetwork/lnd
108+
cd lnd
109+
make install
110+
```
111+
112+
The command above will install the current _master_ branch of `lnd`. If you
113+
wish to install a tagged release of `lnd` (as the master branch can at times be
114+
unstable), then [visit then release page to locate the latest
115+
release](https://github.com/lightningnetwork/lnd/releases). Assuming the name
116+
of the release is `v0.x.x`, then you can compile this release from source with
117+
a small modification to the above command:
110118
```
119+
git clone https://github.com/lightningnetwork/lnd
120+
cd lnd
121+
git checkout v0.x.x
122+
make install
123+
```
124+
111125
112126
**NOTE**: Our instructions still use the `$GOPATH` directory from prior
113127
versions of Go, but with Go 1.12, it's now possible for `lnd` to live

0 commit comments

Comments
 (0)