Skip to content

Commit

Permalink
Merge pull request #111 from chenrui333/go1.22
Browse files Browse the repository at this point in the history
feat: update to use go 1.22
  • Loading branch information
minamijoyo authored Feb 10, 2024
2 parents 9844864 + d8f4871 commit 18c52ba
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: golangci-lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: Generate github app token
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: test
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.21
1.22
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# tfupdate
FROM golang:1.21-alpine3.18 AS tfupdate
FROM golang:1.22-alpine3.19 AS tfupdate
RUN apk --no-cache add make git
WORKDIR /work

Expand All @@ -13,7 +13,7 @@ RUN make build
# The linux binary for hub can not run on alpine.
# So we need to build it from source.
# https://github.com/github/hub/issues/1818
FROM golang:1.21-alpine3.18 AS hub
FROM golang:1.22-alpine3.19 AS hub
RUN apk add --no-cache bash git
RUN git clone https://github.com/github/hub /work
WORKDIR /work
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG TERRAFORM_VERSION=latest
FROM hashicorp/terraform:$TERRAFORM_VERSION AS terraform

# tfupdate
FROM golang:1.21-alpine3.18 AS tfupdate
FROM golang:1.22-alpine3.19 AS tfupdate
RUN apk --no-cache add make git

# A workaround for a permission issue of git.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ https://github.com/minamijoyo/tfupdate/releases

### Source

If you have Go 1.21+ development environment:
If you have Go 1.22+ development environment:

```
$ go install github.com/minamijoyo/tfupdate@latest
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/minamijoyo/tfupdate

go 1.21
go 1.22

require (
github.com/davecgh/go-spew v1.1.1
Expand Down

0 comments on commit 18c52ba

Please sign in to comment.