From 0620189b247eee8d16499e82001a51c094b2ebec Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 17 Jan 2022 13:50:15 +0100 Subject: docs: update Go versions Generally we aim at supporting 2 latest versions of Go. Currently it is 1.16 and 1.17. --- docs/linux/setup.md | 21 ++++++--------------- go.mod | 2 +- 2 files changed, 7 insertions(+), 16 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). diff --git a/go.mod b/go.mod index f8a123517..bec19e68c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/google/syzkaller -go 1.14 +go 1.16 require ( cloud.google.com/go v0.81.0 -- cgit mrf-deployment