make+docs: pull in modules patch

This commit is contained in:
djkazic
2023-01-27 15:38:38 -05:00
parent 2f994ceeae
commit bb5faf0f5a
7 changed files with 28 additions and 29 deletions

View File

@@ -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, lets change directory to the newly created lnd folder inside `$GOPATH`:
@@ -58,13 +44,21 @@ Finally, lets 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