Skip to content

Commit e95ff93

Browse files
authored
build: update to Go 1.22 (#468)
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
1 parent e2cb17b commit e95ff93

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
install-go-modules:
1111
strategy:
1212
matrix:
13-
go: ["1.21.x", "1.20.x", "1.19.x"]
13+
go: ["1.22.x", "1.21.x", "1.20.x"]
1414

1515
runs-on: ubuntu-latest
1616

@@ -28,7 +28,7 @@ jobs:
2828
test:
2929
strategy:
3030
matrix:
31-
go: ["1.21.x", "1.20.x", "1.19.x"]
31+
go: ["1.22.x", "1.21.x", "1.20.x"]
3232
runs-on: ubuntu-latest
3333

3434
steps:
@@ -56,7 +56,7 @@ jobs:
5656
dist:
5757
strategy:
5858
matrix:
59-
go: ["1.21.x", "1.20.x", "1.19.x"]
59+
go: ["1.22.x", "1.21.x", "1.20.x"]
6060
runs-on: ubuntu-latest
6161
needs: test
6262

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Go
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: 1.21.x
18+
go-version: 1.22.x
1919

2020
- name: Install nfpm, rpmbuild
2121
run: sudo make -f Makefile.tools nfpm-debian rpmbuild-debian
@@ -65,7 +65,7 @@ jobs:
6565
- name: Setup Go
6666
uses: actions/setup-go@v4
6767
with:
68-
go-version: 1.21.x
68+
go-version: 1.22.x
6969

7070
- name: Set up QEMU
7171
uses: docker/setup-qemu-action@v2

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21.6-alpine AS build
1+
FROM golang:1.22.1-alpine AS build
22

33
WORKDIR /go/src/github.com/segmentio/chamber
44
COPY . .

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/segmentio/chamber/v2
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/alessio/shellescape v1.4.2

0 commit comments

Comments
 (0)