From 2032b1f2b56df237f4ed6f3879879fd0ac6d0f05 Mon Sep 17 00:00:00 2001 From: Austin Valle Date: Fri, 6 Sep 2024 17:51:45 -0400 Subject: [PATCH] all: Bump minimum Go module version to 1.22 --- .github/workflows/test.yml | 6 +----- .golangci.yml | 2 +- README.md | 2 +- go.mod | 4 +--- tools/go.mod | 2 +- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 226786dd..85b15b25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,16 +21,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 - strategy: - matrix: - go-version: [ '1.21', '1.22' ] - steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: - go-version: ${{ matrix.go-version }} + go-version-file: 'go.mod' - name: Run linters uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 diff --git a/.golangci.yml b/.golangci.yml index c32adeaa..3f0edd16 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,6 +12,7 @@ linters: - godot - gofmt - gosimple + - govet - ineffassign - makezero - misspell @@ -22,7 +23,6 @@ linters: - unconvert - unparam - unused - - vet run: # Prevent false positive timeouts in CI diff --git a/README.md b/README.md index b6c9205b..70294fc5 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ that return all the details about which version are currently available for a pa ## Requirements * [Terraform](https://www.terraform.io/downloads) -* [Go](https://go.dev/doc/install) (1.21) +* [Go](https://go.dev/doc/install) (1.22) * [GNU Make](https://www.gnu.org/software/make/) * [golangci-lint](https://golangci-lint.run/usage/install/#local-installation) (optional) diff --git a/go.mod b/go.mod index bf89fe56..b11fa722 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/terraform-providers/terraform-provider-local -go 1.21 - -toolchain go1.21.6 +go 1.22.7 require ( github.com/google/go-cmp v0.6.0 diff --git a/tools/go.mod b/tools/go.mod index 9d6645cc..42ba5616 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module tools -go 1.21 +go 1.22.7 require ( github.com/hashicorp/copywrite v0.19.0