grafana/contribute/backend/upgrading-go-version.md
Timur Olzhabayev 4991e71b85
Chore: Upgrade Go to 1.21.5 (#79329)
* bumping grafanas go version to 1.21.5

* adding how to upgrade go doc

* removing the whole ci-build and corresponding pipelines

* clarifying that we have to run make drone

* fixing starlark linter and removing unused code

* Adding note about enterprise

* trying to change the underyling image to avoid musl issues

* only need to golang one
2023-12-15 10:36:49 +01:00

1.2 KiB

Upgrading Go Version

Notes on upgrading Go version.

Example PR: https://github.com/grafana/grafana/pull/79329

The main areas that need to change during the upgrade are:

Make sure to run make drone so that changes to .star files are reflected and drone.yml is generated.

Additional files to change

  • Take a look in .github/workflows folder for what go version is being used there in various workflows.
  • Make sure to create a PR with the corresponding changes in grafana/grafana-enterprise repository.

Updating the go.mod file

Please avoid updating the go.mod to the newest version unless really necessary. This ensures backwards compatibility and introduces less breaking changes. Always upgrade Go version in the runtime files above first, let them run for a couple of weeks and only then consider updating the go.mod file if necessary.