diff options
Diffstat (limited to 'docs/linux')
| -rw-r--r-- | docs/linux/setup.md | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/docs/linux/setup.md b/docs/linux/setup.md index 5f3c12727..3d4c3e91e 100644 --- a/docs/linux/setup.md +++ b/docs/linux/setup.md @@ -27,18 +27,14 @@ If you encounter any troubles, check the [troubleshooting](/docs/troubleshooting ### Go and syzkaller -`syzkaller` is written in [Go](https://golang.org), and `Go 1.13+` -toolchain is required for build. *Note:* `Go 1.14` is required for contributors, -as `Go 1.13` may change `go.mod` file. The toolchain can be installed with: +`syzkaller` is written in [Go](https://golang.org), and `Go 1.16+` toolchain is required for build. +Generally we aim at supporting 2 latest releases of Go. +The toolchain can be installed with: ``` -wget https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -tar -xf go1.14.2.linux-amd64.tar.gz -mv go goroot -mkdir gopath -export GOPATH=`pwd`/gopath -export GOROOT=`pwd`/goroot -export PATH=$GOPATH/bin:$PATH +wget https://dl.google.com/go/go1.17.6.linux-amd64.tar.gz +tar -xf go1.17.6.linux-amd64.tar.gz +export GOROOT=`pwd`/go export PATH=$GOROOT/bin:$PATH ``` @@ -57,11 +53,6 @@ As the result compiled binaries should appear in the `bin/` dir. Note: if you want to do cross-OS/arch testing, you need to specify `TARGETOS`, `TARGETVMARCH` and `TARGETARCH` arguments to `make`. See the [Makefile](/Makefile) for details. -Note: older versions of Go toolchain formatted code in a slightly -[different way](https://github.com/golang/go/issues/25161). -So if you are seeing unrelated code formatting diffs after running `make generate` -or `make format`, you may be using `Go 1.10` or older. In such case update to `Go 1.13+`. - ### Environment You might need to properly setup `binutils` if you're fuzzing in a cross-arch environment as described [here](coverage.md#binutils). |
