From 3f0ef72fce384269072532c66b10d7c8343cc549 Mon Sep 17 00:00:00 2001 From: mayankpande88 Date: Tue, 28 Jul 2026 21:51:51 +0530 Subject: [PATCH] chore: move the Go toolchain to 1.26.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repo pins Go in three places and they had drifted apart: CI on 1.25.0, the release image on 1.25.12, and the (unused) alpine build file still on 1.23.8. Move all three to 1.26.5 together so the version CI validates is the version the release actually ships. This also unblocks #263: k8s.io 0.36.x declares `go >= 1.26.0`, and CI runs with GOTOOLCHAIN=local, so a 1.25.x runner fails the module load outright rather than fetching a newer toolchain. Deliberately not touching the `go` directive in go.mod — 1.26.5 satisfies the current `go 1.25.0`, and raising it is the k8s bump's business, not the toolchain's. --- .github/workflows/ci.yml | 2 +- Dockerfile | 2 +- Dockerfile.alpine | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 197006f..acd1cb2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-go@v7 with: - go-version: '1.25.0' + go-version: '1.26.5' - name: Install systemd headers run: | sudo apt-get update diff --git a/Dockerfile b/Dockerfile index 8433ce0..a6813bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM debian:bullseye AS builder RUN apt-get update && apt-get install -y \ curl git build-essential pkg-config libsystemd-dev -ARG GO_VERSION=1.25.12 +ARG GO_VERSION=1.26.5 RUN curl -fsSL https://go.dev/dl/go${GO_VERSION}.linux-$(dpkg --print-architecture).tar.gz -o go.tar.gz && \ tar -C /usr/local -xzf go.tar.gz && rm go.tar.gz ENV PATH="/usr/local/go/bin:${PATH}" diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 39342cf..a29af12 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,5 +1,5 @@ # Build stage -FROM golang:1.23.8-alpine AS builder +FROM golang:1.26.5-alpine AS builder # Install build tools RUN apk add --no-cache build-base