diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index cdcfb33..aa1ec87 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -15,8 +15,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: '.go-version' - name: golangci-lint diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2e0f795..cff5723 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,7 +13,7 @@ jobs: timeout-minutes: 5 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9e3d123..1eff14e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,8 +18,8 @@ jobs: matrix: os: [ubuntu-latest, macOS-latest, windows-latest] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: '.go-version' - name: test diff --git a/.go-version b/.go-version index d2ab029..71f7f51 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.21 +1.22 diff --git a/Dockerfile b/Dockerfile index 001371c..af3b8bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # build -FROM golang:1.21-alpine3.18 AS builder +FROM golang:1.22-alpine3.19 AS builder RUN apk --no-cache add make git WORKDIR /work @@ -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 diff --git a/README.md b/README.md index a3a7110..777be5b 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ https://github.com/minamijoyo/hcledit/releases ### Source -If you have Go 1.21+ development environment: +If you have Go 1.22+ development environment: ``` $ git clone https://github.com/minamijoyo/hcledit diff --git a/go.mod b/go.mod index a8314dc..052d28e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/minamijoyo/hcledit -go 1.21 +go 1.22 require ( github.com/google/go-cmp v0.3.1