From 77da5b86a6ee63fb1b6c8a3b4fb5d234d30d34bc Mon Sep 17 00:00:00 2001 From: Chunyi Lyu Date: Wed, 31 May 2023 15:09:28 +0100 Subject: [PATCH] Use golang 1.20 --- .github/workflows/build-test-publish.yml | 2 +- .github/workflows/prometheus-rules.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 8e0cd9e50..20a116a28 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -13,7 +13,7 @@ on: branches: [ "main" ] env: - GO_VERSION: ~1.19 + GO_VERSION: ~1.20 # Taken from https://github.com/kubernetes-sigs/kind/releases/tag/v0.18.0 # The image here should be listed under 'Images built for this release' for the version of kind in go.mod KIND_NODE_IMAGE: "kindest/node:v1.26.3@sha256:61b92f38dff6ccc29969e7aa154d34e38b89443af1a2c14e6cfbd2df6419c66f" diff --git a/.github/workflows/prometheus-rules.yml b/.github/workflows/prometheus-rules.yml index d2d54a5f4..8996f7e53 100644 --- a/.github/workflows/prometheus-rules.yml +++ b/.github/workflows/prometheus-rules.yml @@ -7,7 +7,7 @@ on: - observability/prometheus/rules/**/*.y*ml env: - GO_VERSION: ~1.19.2 + GO_VERSION: ~1.20 jobs: rules: diff --git a/Dockerfile b/Dockerfile index f58848a14..eb648a8d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM --platform=$BUILDPLATFORM golang:1.19 as builder +FROM --platform=$BUILDPLATFORM golang:1.20 as builder WORKDIR /workspace diff --git a/go.mod b/go.mod index c7544ef7f..ae47382d7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/rabbitmq/cluster-operator -go 1.19 +go 1.20 require ( github.com/cloudflare/cfssl v1.6.4