telegraf/tools/update_goversion
Paweł Żak f7949ca68a
chore: Fix linter findings for errorlint (part1) (#12701)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-02-22 12:57:53 +01:00
..
testdata chore: Tool to update Telegraf to use new Go version (#11968) 2022-10-12 15:19:50 -05:00
README.md chore: Tool to update Telegraf to use new Go version (#11968) 2022-10-12 15:19:50 -05:00
main.go chore: Fix linter findings for errorlint (part1) (#12701) 2023-02-22 12:57:53 +01:00
main_test.go chore: Tool to update Telegraf to use new Go version (#11968) 2022-10-12 15:19:50 -05:00

README.md

Update Go Version

The version doesn't require a leading "v" and minor versions don't need a trailing ".0". The tool will still will work correctly if they are provided.

go run tools/update_goversion/main.go 1.19.2 go run tools/update_goversion/main.go 1.19

This tool is meant to be used to create a pull request that will update the Telegraf project to use the latest version of Go. The Dockerfile quay.io/influxdb/telegraf-ci used by the CI will have to be pushed to the quay repository by a maintainer with make ci.