Skip to content

Commit

Permalink
build: update to Go 1.22 (#468)
Browse files Browse the repository at this point in the history
Includes:

* Bumping go.mod to minimum Go 1.20
* Updating GitHub build and release workflows to 1.22, and dropping 1.19
* Bumping the Docker base image to Go 1.22.1
  • Loading branch information
bhavanki authored Mar 8, 2024
1 parent e2cb17b commit e95ff93
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
install-go-modules:
strategy:
matrix:
go: ["1.21.x", "1.20.x", "1.19.x"]
go: ["1.22.x", "1.21.x", "1.20.x"]

runs-on: ubuntu-latest

Expand All @@ -28,7 +28,7 @@ jobs:
test:
strategy:
matrix:
go: ["1.21.x", "1.20.x", "1.19.x"]
go: ["1.22.x", "1.21.x", "1.20.x"]
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
dist:
strategy:
matrix:
go: ["1.21.x", "1.20.x", "1.19.x"]
go: ["1.22.x", "1.21.x", "1.20.x"]
runs-on: ubuntu-latest
needs: test

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Install nfpm, rpmbuild
run: sudo make -f Makefile.tools nfpm-debian rpmbuild-debian
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
go-version: 1.22.x

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.6-alpine AS build
FROM golang:1.22.1-alpine AS build

WORKDIR /go/src/github.com/segmentio/chamber
COPY . .
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/segmentio/chamber/v2

go 1.19
go 1.20

require (
github.com/alessio/shellescape v1.4.2
Expand Down

0 comments on commit e95ff93

Please sign in to comment.