diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2020-02-25 14:41:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-25 14:41:56 +0100 |
| commit | 3ab0a8d9ef76f24f1cf15a3166ec3e20d26331e4 (patch) | |
| tree | e080ace3e35c835f69b18179e1421167f58079d0 /docs/contributing.md | |
| parent | b66a1338d041e8150647a50cc82c9eb450d744c0 (diff) | |
Update contributing.md
Diffstat (limited to 'docs/contributing.md')
| -rw-r--r-- | docs/contributing.md | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/docs/contributing.md b/docs/contributing.md index ae435bd54..c11779722 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -48,23 +48,25 @@ so that there is agreement on high level approach and no duplication of work bet ## Go -`syzkaller` is written in [Go](https://golang.org), and a `Go 1.11` or `Go 1.12` -toolchain is required for build. The toolchain can be installed with: +`syzkaller` is written in [Go](https://golang.org), and a `Go 1.11`, `Go 1.12` +or `Go 1.13` toolchain is required for build. The toolchain can be installed with: ``` -go get golang.org/dl/go1.12 -go1.12 download -# Default download path is here. -~/sdk/go1.12/bin/go version -export GOROOT=$HOME/sdk/go1.12 -export PATH=$HOME/sdk/go1.12/bin:$PATH +wget https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz +tar -xf go1.13.8.linux-amd64.tar.gz +mv go goroot +mkdir gopath +export GOPATH=`pwd`/gopath +export GOROOT=`pwd`/goroot +export PATH=`pwd`/goroot/bin:$PATH +export PATH=`pwd`/gopath/bin:$PATH ``` Then get and build `syzkaller`: ``` bash go get -u -d github.com/google/syzkaller/... -cd $HOME?/go/src/github.com/google/syzkaller/ +cd gopath/src/github.com/google/syzkaller/ make ``` |
