Update Go version across the Tempo codebase (go.mod, tools/go.mod, Dockerfile, CI workflows, tools image tag)
Updates the Go version across all relevant files in the Tempo codebase.
Invoke with /update-go-version
Extract Go version from tools/Dockerfile.
This file is updated by a Renovate workflow automatically.
Check these files:
go.mod (main module)tools/go.mod (tools module)
If the versions already match, advise user that tools/Dockerfile needs to be updated and merged first to build new image, then stop.Update the go X.Y.Z directive in both:
go.mod (main module)tools/go.mod (tools module)Fetch the latest tools image tag from Docker Hub:
curl -s "https://hub.docker.com/v2/repositories/grafana/tempo-ci-tools/tags?page_size=5&ordering=last_updated" | jq -r '.results[0].name'
Update TOOLS_IMAGE_TAG ?= main-XXXXXXX with the latest tag.
make vendor
make build
| File | What to change |
|---|---|
go.mod | go X.Y.Z directive |
tools/go.mod | go X.Y.Z directive |
build/tools.mk | TOOLS_IMAGE_TAG value |