Skip to content

Commit

Permalink
all: Update Go Module to Go 1.20 (#322)
Browse files Browse the repository at this point in the history
Reference: #321
  • Loading branch information
bflad committed Sep 6, 2023
1 parent 1eb755a commit 6a7e35b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 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: "321"
4 changes: 3 additions & 1 deletion .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
- '1.2.*'
- '1.3.*'
- '1.4.*'
- '1.5.*'
terraform-provider-corner-tfprotov6:
defaults:
run:
Expand Down Expand Up @@ -101,12 +102,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.19', '1.18']
go-version: ['1.20', '1.19']
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 @@ -33,7 +33,7 @@ is unsupported by the Terraform Plugin SDK team.

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.

## Getting Started

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-go

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

0 comments on commit 6a7e35b

Please sign in to comment.