Skip to content

Commit 527cfe4

Browse files
authored
all: Bump minimum Go module version to 1.22 (#1373)
* all: Bump minimum Go module version to 1.22 * add changelog
1 parent 6d64862 commit 527cfe4

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
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-06T17:13:44.643765-04:00
6+
custom:
7+
Issue: "1373"

.github/workflows/ci-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
strategy:
5050
matrix:
51-
go-version: [ '1.22', '1.21' ]
51+
go-version: [ '1.23', '1.22' ]
5252
steps:
5353
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5454
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ When running provider tests, Terraform 0.12.26 or later is needed for version 2.
1818

1919
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.
2020

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

2323
## Getting Started
2424

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-sdk/v2
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

0 commit comments

Comments
 (0)