From 7a62ec8fc049f952f4ef74720618c2a1429aaf51 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 7 Feb 2024 22:01:19 +0100 Subject: [PATCH] feat: update to use go 1.22 Signed-off-by: Rui Chen --- .github/workflows/lint.yaml | 2 +- .github/workflows/test.yaml | 2 +- .go-version | 2 +- Dockerfile | 2 +- go.mod | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b3cdcc2..c783037 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index aa11a07..71be3f8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,7 +21,7 @@ jobs: - 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 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 561126a..1feaf87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG OPENTOFU_VERSION=latest FROM hashicorp/terraform:$TERRAFORM_VERSION AS terraform FROM ghcr.io/opentofu/opentofu:$OPENTOFU_VERSION AS opentofu -FROM golang:1.21-alpine3.18 +FROM golang:1.22-alpine3.19 RUN apk --no-cache add make git bash # A workaround for a permission issue of git. diff --git a/go.mod b/go.mod index a5028b3..2efbf6a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/minamijoyo/tfschema -go 1.21 +go 1.22 require ( github.com/hashicorp/go-hclog v0.15.0