make+docs: pull in modules patch
This commit is contained in:
1 parent
2f994ceeae
commit
bb5faf0f5a
7 files changed
+28
-29
No files matched your search
+12
-18
@@ -13,16 +13,8 @@ To build for Android, you need either
|
||||
|
||||
### Go and Go mobile
|
||||
|
||||
First, follow the instructions to [install Go](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md#building-a-development-version-from-source).
|
||||
|
||||
Then, install [Go mobile](https://github.com/golang/go/wiki/Mobile) and
|
||||
initialize it:
|
||||
|
||||
```shell
|
||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||
go mod download golang.org/x/mobile
|
||||
gomobile init
|
||||
```
|
||||
First, follow the instructions to [install
|
||||
Go](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md#building-a-development-version-from-source).
|
||||
|
||||
### Docker
|
||||
|
||||
@@ -42,14 +34,8 @@ Note that `gomobile` only supports building projects from `$GOPATH` at this
|
||||
point. However, with the introduction of Go modules, the source code files are
|
||||
no longer installed there by default.
|
||||
|
||||
To be able to do so, we must turn off module and using the now deprecated
|
||||
`go get` command before turning modules back on again.
|
||||
|
||||
```shell
|
||||
go env -w GO111MODULE="off"
|
||||
go get github.com/lightningnetwork/lnd
|
||||
go get golang.org/x/mobile/bind
|
||||
go env -w GO111MODULE="on"
|
||||
git clone https://github.com/lightningnetwork/lnd.git $GOPATH/src/github.com/lightningnetwork/lnd
|
||||
```
|
||||
|
||||
Finally, let’s change directory to the newly created lnd folder inside `$GOPATH`:
|
||||
@@ -58,13 +44,21 @@ Finally, let’s change directory to the newly created lnd folder inside `$GOPAT
|
||||
cd $GOPATH/src/github.com/lightningnetwork/lnd
|
||||
```
|
||||
|
||||
It is not recommended building from the master branch for mainnet. To checkout
|
||||
It is not recommended building from the master branch for mainnet. To check out
|
||||
the latest tagged release of lnd, run
|
||||
|
||||
```shell
|
||||
git checkout $(git describe --match "v[0-9]*" --abbrev=0)
|
||||
```
|
||||
|
||||
Then, install [Go mobile](https://github.com/golang/go/wiki/Mobile) and
|
||||
initialize it:
|
||||
|
||||
```shell
|
||||
go install golang.org/x/mobile/cmd/gomobile
|
||||
gomobile init
|
||||
```
|
||||
|
||||
### iOS
|
||||
|
||||
```shell
|
||||
|
||||
@@ -13,6 +13,7 @@ import (
|
||||
flags "github.com/jessevdk/go-flags"
|
||||
"github.com/lightningnetwork/lnd"
|
||||
"github.com/lightningnetwork/lnd/signal"
|
||||
_ "golang.org/x/mobile/bind"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user