Skip to content

Commit c4e4453

Browse files
authored
all: Bump minimum Go module version to 1.22 (#1033)
* all: Bump minimum Go module version to 1.22.7 * add changelog * back to 1.22.0
1 parent 2ff8226 commit c4e4453

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
kind: NOTES
2+
body: 'all: This Go module has been updated to Go 1.22 per the [Go support policy](https://go.dev/doc/devel/release#policy).
3+
It is recommended to review the [Go 1.22 release notes](https://go.dev/doc/go1.22)
4+
before upgrading. Any consumers building on earlier Go versions may experience errors'
5+
time: 2024-09-06T09:52:58.814574-04:00
6+
custom:
7+
Issue: "1033"

.github/workflows/ci-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
runs-on: ubuntu-latest
8080
strategy:
8181
matrix:
82-
go-version: [ '1.22', '1.21' ]
82+
go-version: [ '1.23', '1.22' ]
8383
steps:
8484
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
8585
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Providers built with this framework are compatible with Terraform version v0.12
2828

2929
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.
3030

31-
Currently, that means Go **1.21** or later must be used when including this project as a dependency.
31+
Currently, that means Go **1.22** or later must be used when including this project as a dependency.
3232

3333
## Contributing
3434

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/hashicorp/terraform-plugin-framework
22

3-
go 1.21
3+
go 1.22.0
44

5-
toolchain go1.21.6
5+
toolchain go1.22.7
66

77
require (
88
github.com/google/go-cmp v0.6.0

tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tools
22

3-
go 1.21
3+
go 1.22.7
44

55
require github.com/hashicorp/copywrite v0.19.0
66

website/docs/plugin/framework/migrating/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In addition to this migration guide, we recommend referring to the main [Framewo
1616

1717
Before you migrate your provider to the Framework, ensure it meets the following requirements:
1818

19-
- Go 1.21+
19+
- Go 1.22+
2020
- Built on the latest version of SDKv2
2121
- The provider is for use with Terraform >= 0.12.0
2222

0 commit comments

Comments
 (0)