From abef842cda4bb1b6e12bf5c40508e2a6980b6ccd Mon Sep 17 00:00:00 2001 From: Julien D <150942337+jdaln@users.noreply.github.com> Date: Tue, 1 Dec 2026 15:27:26 +0100 Subject: [PATCH] chore(renovate): take Go 1.27 patch releases only for the operator builder golang is the build stage of operator/Dockerfile and never ships. Pinned as golang:1.27@sha256, every rebuild of the official image opened a digest PR even when the Go version and the amd64 image were unchanged (#72 only rebuilt riscv64). Pin the builder to the full Go version, golang:1.27.4, at the current official digest, and stop digest-only updates for golang. Limit golang to 1.27.x, matching `go 1.27.0` in operator/go.mod, so Renovate proposes Go 1.27 patch releases (tag and digest together) and never a new minor. Go 1.27 is supported until Go 1.29 is released, expected August 2027. The move to a new minor is made by hand: the Dockerfile tag, the go line in operator/go.mod and the allowedVersions pattern in renovate.json. --- operator/Dockerfile | 5 +++-- renovate.json | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/operator/Dockerfile b/operator/Dockerfile index b412a8fc..667d445d 100644 --- a/operator/Dockerfile +++ b/operator/Dockerfile @@ -1,5 +1,6 @@ -# Base images are pinned by digest; bump the digest to pick up base fixes. -FROM golang:1.27@sha256:5f1b98fa02fe396ebce2a0227a0e08309e11792915b9dd2e1f71053d7e7e6666 AS builder +# Base images are pinned by digest. The builder carries the full Go version, so +# Renovate proposes Go releases only, not rebuilds of the same version. +FROM golang:1.27.4@sha256:6c84d962396dfb090cedb41e7ec9e9f979888641bb159a317a2bcb11c4f99bd5 AS builder ARG TARGETOS ARG TARGETARCH WORKDIR /workspace diff --git a/renovate.json b/renovate.json index e37917b9..e9b77380 100644 --- a/renovate.json +++ b/renovate.json @@ -53,6 +53,29 @@ "digest" ] }, + { + "description": "golang is only the build stage and is pinned to a full Go version: a new digest for the same version is a rebuild of the build environment and changes nothing that ships. New Go releases still come as version updates", + "enabled": false, + "matchDatasources": [ + "docker" + ], + "matchDepNames": [ + "golang" + ], + "matchUpdateTypes": [ + "digest" + ] + }, + { + "allowedVersions": "/^1\\.27\\.\\d+$/", + "description": "Stay on Go 1.27, the go directive in operator/go.mod: propose its patch releases only. A new Go minor is a deliberate change, made by hand together with go.mod", + "matchDatasources": [ + "docker" + ], + "matchDepNames": [ + "golang" + ] + }, { "description": "Cooldown: only propose releases at least 7 days old, so yanked or compromised releases never reach a PR", "matchDatasources": [