diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-01-17 13:50:15 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-01-19 09:11:05 +0100 |
| commit | 0620189b247eee8d16499e82001a51c094b2ebec (patch) | |
| tree | e2146e744c8e17281ec29704317bbb5922b60482 /docs/linux | |
| parent | 95574a7cbbe5754d10de5032b38b1818414eed94 (diff) | |
docs: update Go versions
Generally we aim at supporting 2 latest versions of Go.
Currently it is 1.16 and 1.17.
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). |
