From 21f542d9c7a3ea50fc12f1859715f960f2b53f3a Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Wed, 15 Mar 2023 10:51:32 -0600 Subject: [PATCH] docs: Update minimum documented go version (#12869) --- README.md | 4 ++-- tools/update_goversion/main.go | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 206087e9f..45c5e8c67 100644 --- a/README.md +++ b/README.md @@ -73,12 +73,12 @@ sudo yum install telegraf ### Build From Source -Telegraf requires Go version 1.18 or newer, the Makefile requires GNU make. +Telegraf requires Go version 1.20 or newer and the Makefile requires GNU make. On Windows, the makefile requires the use of a bash terminal to support all makefile targets. An easy option to get bash for windows is using the version that comes with [git for windows](https://gitforwindows.org/). -1. [Install Go](https://golang.org/doc/install) >=1.18 (1.18.0 recommended) +1. [Install Go](https://golang.org/doc/install) 2. Clone the Telegraf repository: ```shell diff --git a/tools/update_goversion/main.go b/tools/update_goversion/main.go index 07888cef1..0698bcaaf 100644 --- a/tools/update_goversion/main.go +++ b/tools/update_goversion/main.go @@ -177,6 +177,11 @@ func main() { Regex: `(quay\.io\/influxdb\/telegraf-ci):(\d.\d*.\d)`, Replace: fmt.Sprintf("$1:%s", version), }, + { + FileName: "README.md", + Regex: `(Telegraf requires Go version) (\d.\d*)`, + Replace: fmt.Sprintf("$1 %s", noPatchVersion), + }, { FileName: "scripts/ci.docker", Regex: `(FROM golang):(\d.\d*.\d)`,