From 02a0af0939e7b5ae27ecb4cf2aafbc99e0ef4f56 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Wed, 6 Sep 2023 12:51:14 -0400 Subject: [PATCH] all: Update Go Module to Go 1.20 (#836) Reference: https://github.com/hashicorp/terraform-plugin-framework/issues/835 --- .changes/unreleased/NOTES-20230906-055849.yaml | 8 ++++++++ .github/workflows/ci-go.yml | 4 +++- README.md | 2 +- go.mod | 2 +- tools/go.mod | 2 +- website/docs/plugin/framework/migrating/index.mdx | 2 +- 6 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 .changes/unreleased/NOTES-20230906-055849.yaml diff --git a/.changes/unreleased/NOTES-20230906-055849.yaml b/.changes/unreleased/NOTES-20230906-055849.yaml new file mode 100644 index 000000000..bcc237c74 --- /dev/null +++ b/.changes/unreleased/NOTES-20230906-055849.yaml @@ -0,0 +1,8 @@ +kind: NOTES +body: 'all: This Go module has been updated to Go 1.20 per the [Go support + policy](https://go.dev/doc/devel/release#policy). It is recommended to review + the [Go 1.20 release notes](https://go.dev/doc/go1.20) before upgrading. Any + consumers building on earlier Go versions may experience errors.' +time: 2023-09-06T05:58:49.879435-04:00 +custom: + Issue: "835" diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index 24bf56068..1f00c3121 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -57,6 +57,7 @@ jobs: - '1.2.*' - '1.3.*' - '1.4.*' + - '1.5.*' terraform-provider-corner-tfprotov6: defaults: run: @@ -88,12 +89,13 @@ jobs: - '1.2.*' - '1.3.*' - '1.4.*' + - '1.5.*' test: name: test (Go v${{ matrix.go-version }}) runs-on: ubuntu-latest strategy: matrix: - go-version: [ '1.20', '1.19' ] + go-version: [ '1.21', '1.20' ] steps: - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 diff --git a/README.md b/README.md index 2129d7e65..2afe64068 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Providers built with this framework are compatible with Terraform version v0.12 This project follows the [support policy](https://golang.org/doc/devel/release.html#policy) of Go as its support policy. The two latest major releases of Go are supported by the project. -Currently, that means Go **1.19** or later must be used when including this project as a dependency. +Currently, that means Go **1.20** or later must be used when including this project as a dependency. ## Contributing diff --git a/go.mod b/go.mod index f211c3331..6a46cfc39 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hashicorp/terraform-plugin-framework -go 1.19 +go 1.20 require ( github.com/google/go-cmp v0.5.9 diff --git a/tools/go.mod b/tools/go.mod index fcd3f7270..c1aaab58c 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,6 +1,6 @@ module tools -go 1.19 +go 1.20 require github.com/hashicorp/copywrite v0.16.4 diff --git a/website/docs/plugin/framework/migrating/index.mdx b/website/docs/plugin/framework/migrating/index.mdx index cdc8af8b9..c40d64d70 100644 --- a/website/docs/plugin/framework/migrating/index.mdx +++ b/website/docs/plugin/framework/migrating/index.mdx @@ -16,7 +16,7 @@ In addition to this migration guide, we recommend referring to the main [Framewo Before you migrate your provider to the Framework, ensure it meets the following requirements: -- Go 1.19+ +- Go 1.20+ - Built on the latest version of SDKv2 - The provider is for use with Terraform >= 0.12.0