From c11e336d3957ff231f1fcbe62267c4419fa30421 Mon Sep 17 00:00:00 2001 From: surister Date: Mon, 21 Oct 2024 14:08:03 +0200 Subject: [PATCH] Chore: Deprecate Go 1.20.x to 1.23.x and add 1.22 & 1.23 to CI --- .github/workflows/tests.yml | 2 +- CHANGES.rst | 2 ++ Dockerfile | 2 +- devtools/release.Dockerfile | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62594a9..b0229a5 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest, macos-latest, windows-latest ] - go-version: [ 1.20.x, 1.21.x ] + go-version: [ 1.21.x, 1.22.x, 1.23.x] steps: - name: Acquire sources diff --git a/CHANGES.rst b/CHANGES.rst index 957bfaf..4a33b0d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,8 @@ Unreleased duplicates should not occur. However, since this enforcement is recent, there may be setups with existing duplicates; thus, we now ignore them to prevent errors. +- Update Go images to 1.23. +- Update all deps to latest (prometheus v0.54.1). 2024-01-23 0.5.1 ================ diff --git a/Dockerfile b/Dockerfile index b5e9b3f..0dac584 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-bullseye as builder +FROM golang:1.23-bullseye as builder WORKDIR /go/src/github.com/crate/cratedb-prometheus-adapter COPY . /go/src/github.com/crate/cratedb-prometheus-adapter/ RUN CGO_ENABLED=0 GOOS=linux go build diff --git a/devtools/release.Dockerfile b/devtools/release.Dockerfile index e2c6190..85623bc 100644 --- a/devtools/release.Dockerfile +++ b/devtools/release.Dockerfile @@ -3,7 +3,7 @@ # Run release archive builder within Docker container. # -FROM golang:1.20-bullseye +FROM golang:1.23-bullseye RUN apt-get update && apt-get --yes install zip