Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add golang to setup docs #1675

Merged
merged 1 commit into from
Nov 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- [Installing OpenJDK 8](#installing-openjdk-8)
- [Install Android Dev Tools](#install-android-dev-tools-1)
- [Some common stuff](#some-common-stuff)
- [Install Go](#install-go)
- [Optional: Install Rust](#optional-install-rust)
- [Optional: Install an Android Emulator](#optional-install-an-android-emulator)
- [Optional: Genymotion](#optional-genymotion)
Expand Down Expand Up @@ -176,6 +177,23 @@ You can find the complete instructions about how to install the tools in Linux e

### Some common stuff

#### Install Go

We need Go for [celo-blockchain](https://github.com/celo-org/celo-blockchain), the Go Celo implementation, and `gobind` to build Java language bindings to Go code for the Android Geth client).

Note: We currently use Go 1.11. Brew installs Go 1.12 by default, which is not entirely compatible with our repositories. [Install Go 1.11 manually](https://golang.org/dl/), then run

```
go get golang.org/x/mobile/cmd/gobind
```

Execute the following (and make sure the lines are in your `~/.bash_profile`):

```
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
```

#### Optional: Install Rust

We use Rust to build the [bls-zexe](https://github.com/celo-org/bls-zexe) repo, which Geth depends on. If you only use the monorepo, you probably don't need this.
Expand Down