From 7dec23b4119f51c69cdabd82d73cdeedbf38045a Mon Sep 17 00:00:00 2001 From: Jack <56563911+jdockerty@users.noreply.github.com> Date: Tue, 9 Jan 2024 21:16:03 +0000 Subject: [PATCH] docs: update contributing.md (#24561) --- CONTRIBUTING.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a98179bc4b..7937d9fa5c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,7 @@ 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). @@ -77,8 +77,12 @@ 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 -------------