Skip to content

Commit

Permalink
all: Update Go Module to Go 1.20 (#836)
Browse files Browse the repository at this point in the history
Reference: #835
  • Loading branch information
bflad authored Sep 6, 2023
1 parent a04b10b commit 02a0af0
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .changes/unreleased/NOTES-20230906-055849.yaml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 3 additions & 1 deletion .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- '1.2.*'
- '1.3.*'
- '1.4.*'
- '1.5.*'
terraform-provider-corner-tfprotov6:
defaults:
run:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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/hashicorp/terraform-plugin-framework

go 1.19
go 1.20

require (
github.com/google/go-cmp v0.5.9
Expand Down
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module tools

go 1.19
go 1.20

require github.com/hashicorp/copywrite v0.16.4

Expand Down
2 changes: 1 addition & 1 deletion website/docs/plugin/framework/migrating/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 02a0af0

Please sign in to comment.