From e5c06733a5c3aa9cf86ee767c4a827ed2d10b51d Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Tue, 14 May 2024 20:50:22 +0200 Subject: [PATCH] build: require go v1.22 This fixes our current ci issues. Seems like some dependencies have updated to go1.22 and operator-sdk generate is not backwards compatible. https://github.com/kubernetes-sigs/controller-runtime/issues/2720 has some details. Signed-off-by: Jan Fajerski --- build/Dockerfile | 2 +- go.mod | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 1c3ab931..ada89965 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.21 as builder +FROM golang:1.22 as builder WORKDIR /workspace # Copy the Go Modules manifests diff --git a/go.mod b/go.mod index 93494822..6f9b9333 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,8 @@ module github.com/rhobs/observability-operator -go 1.21 -toolchain go1.22.2 +go 1.22.0 + +toolchain go1.22.3 require ( github.com/go-logr/logr v1.4.1