Skip to content

Commit

Permalink
chore: bump Go to 1.22 (#529)
Browse files Browse the repository at this point in the history
* chore: bump Go to 1.22

* Fix go version
  • Loading branch information
troutowicz authored Feb 21, 2024
1 parent 5c81890 commit 076ad27
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
- name: check out code
uses: actions/checkout@v4
- name: setup Go 1.21
- name: setup Go 1.22
id: go
uses: actions/setup-go@v4
with:
go-version: ^1.21
go-version: ^1.22
- name: build
run: make build
- name: install dependency
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: setup Go
uses: actions/setup-go@v2
with:
go-version: ^1.21
go-version: ^1.22
- name: set GOVERSION
run: echo "GOVERSION=$(go version | sed -r 's/go version go(.*)\ .*/\1/')" >> $GITHUB_ENV
- name: set AirVersion
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/smoke_test_reuse_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
steps:
- name: check out code
uses: actions/checkout@v2
- name: setup Go 1.21
- name: setup Go 1.22
id: go
uses: actions/setup-go@v2
with:
go-version: ^1.21
go-version: ^1.22
- name: install
run: make install
- name: check rebuild
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/smoke_test_window_reust_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
steps:
- name: check out code
uses: actions/checkout@v2
- name: setup Go 1.21
- name: setup Go 1.22
id: go
uses: actions/setup-go@v2
with:
go-version: ^1.21
go-version: ^1.22
- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 AS builder
FROM golang:1.22 AS builder

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

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

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

FROM golang:1.21
FROM golang:1.22

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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ services:

```Dockerfile
# Choose whatever you want, version >= 1.16
FROM golang:1.21-alpine
FROM golang:1.22-alpine
WORKDIR /app
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/cosmtrek/air

go 1.21
go 1.22

require (
dario.cat/mergo v1.0.0
Expand Down

0 comments on commit 076ad27

Please sign in to comment.