Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(contributing): update setup #24561

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,20 @@ second to sign our CLA, which can be found

Installing Go
-------------
InfluxDB requires Go 1.15.
InfluxDB requires Go 1.20.

At InfluxDB 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:

gvm install go1.15
gvm use go1.15 --default
# Retrieve the version in use from the go.mod file.
INFLUXDB_GO_VERSION=$(go mod edit -json | jq -r .Go)

# Use gvm to install the correct version
gvm install go${INFLUXDB_GO_VERSION}
gvm use go${INFLUXDB_GO_VERSION} --default

Revision Control Systems
-------------
Expand Down