Skip to content

Commit

Permalink
bump up to Go 1.23, drop support for Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Aug 14, 2024
1 parent 0607aa5 commit d310f91
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Build
run: make build
- name: Check command examples
Expand Down Expand Up @@ -54,7 +52,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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.dev.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/itchyny/gojq

go 1.20
go 1.21

require (
github.com/google/go-cmp v0.5.4
Expand Down

0 comments on commit d310f91

Please sign in to comment.