docs: bump Go version in build-from-source docs (#21677)

pull/21676/head
Daniel Moran 2021-06-14 11:07:52 -04:00 committed by GitHub
parent 242e313b10
commit 3e3e77ed1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -89,15 +89,15 @@ If you are going to be contributing back to InfluxDB please take a second to sig
### Installing Go
InfluxDB requires Go 1.15.
InfluxDB requires Go 1.16.
At InfluxData we find `gvm`, a Go version manager, useful for installing Go.
For instructions on how to install it see [the gvm page on github](https://github.com/moovweb/gvm).
After installing gvm you can install and set the default go version by running the following:
```bash
$ gvm install go1.15
$ gvm use go1.15 --default
$ gvm install go1.16
$ gvm use go1.16 --default
```
InfluxDB requires Go module support. Set `GO111MODULE=on` or build the project outside of your `GOPATH` for it to succeed. For information about modules, please refer to the [wiki](https://github.com/golang/go/wiki/Modules).