From 470db58ade10408596f9f6318dbaeea792806df9 Mon Sep 17 00:00:00 2001 From: itchyny Date: Thu, 15 Aug 2024 07:57:57 +0900 Subject: [PATCH] bump up to Go 1.23, drop support for Go 1.20 --- .github/workflows/ci.yaml | 4 ++-- Dockerfile | 4 ++-- go.dev.mod | 2 +- go.mod | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7c8f0e8e..8e5fafcb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,7 +21,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.22.x + go-version: 1.23.x - name: Build run: make build - name: Check command examples @@ -54,7 +54,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go: [1.22.x, 1.21.x, 1.20.x] + go: [1.23.x, 1.22.x, 1.21.x] fail-fast: false steps: - name: Checkout code diff --git a/Dockerfile b/Dockerfile index d5e0dce6..96a14e99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM golang:1.22 AS builder +FROM golang:1.23 AS builder WORKDIR /app COPY go.* ./ RUN go mod download COPY . . -ENV CGO_ENABLED 0 +ENV CGO_ENABLED=0 RUN make build FROM gcr.io/distroless/static:debug diff --git a/go.dev.mod b/go.dev.mod index 1e831626..bdc69df6 100644 --- a/go.dev.mod +++ b/go.dev.mod @@ -1,6 +1,6 @@ module github.com/itchyny/gojq -go 1.20 +go 1.21 require ( github.com/itchyny/astgen-go v0.0.0-20231113225122-e1c22b9aaf7b // indirect diff --git a/go.mod b/go.mod index 56f8951c..1f8fb609 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/itchyny/gojq -go 1.20 +go 1.21 require ( github.com/google/go-cmp v0.5.4