From 3ab0a8d9ef76f24f1cf15a3166ec3e20d26331e4 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Tue, 25 Feb 2020 14:41:56 +0100 Subject: Update contributing.md --- docs/contributing.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'docs/contributing.md') 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 ``` -- cgit mrf-deployment