Skip to content

Commit 076ad27

Browse files
authored
chore: bump Go to 1.22 (air-verse#529)
* chore: bump Go to 1.22 * Fix go version
1 parent 5c81890 commit 076ad27

7 files changed

+11
-11
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
steps:
1616
- name: check out code
1717
uses: actions/checkout@v4
18-
- name: setup Go 1.21
18+
- name: setup Go 1.22
1919
id: go
2020
uses: actions/setup-go@v4
2121
with:
22-
go-version: ^1.21
22+
go-version: ^1.22
2323
- name: build
2424
run: make build
2525
- name: install dependency

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: setup Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: ^1.21
19+
go-version: ^1.22
2020
- name: set GOVERSION
2121
run: echo "GOVERSION=$(go version | sed -r 's/go version go(.*)\ .*/\1/')" >> $GITHUB_ENV
2222
- name: set AirVersion

.github/workflows/smoke_test_reuse_job.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
steps:
1515
- name: check out code
1616
uses: actions/checkout@v2
17-
- name: setup Go 1.21
17+
- name: setup Go 1.22
1818
id: go
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: ^1.21
21+
go-version: ^1.22
2222
- name: install
2323
run: make install
2424
- name: check rebuild

.github/workflows/smoke_test_window_reust_job.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
steps:
1515
- name: check out code
1616
uses: actions/checkout@v2
17-
- name: setup Go 1.21
17+
- name: setup Go 1.22
1818
id: go
1919
uses: actions/setup-go@v2
2020
with:
21-
go-version: ^1.21
21+
go-version: ^1.22
2222
- name: Setup Python
2323
uses: actions/setup-python@v2
2424
with:

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21 AS builder
1+
FROM golang:1.22 AS builder
22

33
LABEL maintainer="Rick Yu <[email protected]>"
44

@@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/go/pkg/mod go mod download
1212

1313
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build make ci && make install
1414

15-
FROM golang:1.21
15+
FROM golang:1.22
1616

1717
COPY --from=builder /go/bin/air /go/bin/air
1818

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ services:
205205

206206
```Dockerfile
207207
# Choose whatever you want, version >= 1.16
208-
FROM golang:1.21-alpine
208+
FROM golang:1.22-alpine
209209
210210
WORKDIR /app
211211

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cosmtrek/air
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
dario.cat/mergo v1.0.0

0 commit comments

Comments
 (0)