Skip to content

Commit 76d4df0

Browse files
Vincent056claude
andcommitted
Force GOTOOLCHAIN=auto so CI can build the go1.25 module graph
The prow build root ships go 1.23 with GOTOOLCHAIN=local, while the compliance-operator v1.9.0 / k8s v0.35 dependency stack requires go >= 1.25.3, so every lane fails at compile. Override GOTOOLCHAIN in the Makefile so go downloads the matching toolchain; can be dropped once the openshift/release build root moves to a golang-1.25 image. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent db231a2 commit 76d4df0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ CONTENT_IMAGE_FLAG:=$(if $(strip $(CONTENT_IMAGE)),-content-image="$(CONTENT_IMA
2525
LOG_DIR?=
2626
LOG_DIR_FLAG:=$(if $(strip $(LOG_DIR)),-log-dir="$(LOG_DIR)")
2727

28+
# The CI build root pins GOTOOLCHAIN=local with a Go older than go.mod requires
29+
# (compliance-operator v1.9.0 and the k8s v0.35 stack need go >= 1.25.3). Let go
30+
# download the matching toolchain instead of failing the build.
31+
export GOTOOLCHAIN := auto
32+
2833
GOLANGCI_LINT_VERSION=latest
2934
BUILD_DIR := build
3035
PLATFORM?=ocp

0 commit comments

Comments
 (0)