---
title: "Patch Go version | Grafana Loki documentation"
description: "Describes the procedure how to patch the Go version in the Loki build image."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Patch Go version

Update vulnerable Go version to non-vulnerable Go version to build Grafana Loki binaries.

## Before you begin.

1. Determine the [VERSION\_PREFIX](../concepts/version/).
2. Need to sign-in to Docker hub to be able to push Loki build image.

## Steps

1. Find Go version to which you need to update. Example `1.20.5` to `1.20.6`
2. Update Go version in the Grafana Loki build image (`loki-build-image/Dockerfile`) on the `main` branch.
3. [Release a new Loki Build Image](../../release-loki-build-image/)
4. [Backport](../backport-commits/) the Dockerfile change to `release-VERSION_PREFIX` branch.
5. [Backport](../backport-commits/) the Loki Build Image version change from `main` to `release-VERSION_PREFIX` branch.
