Skip to content

Commit 769e1d1

Browse files
authored
Bump Expected Minimum Go Version to 1.17 (#175)
Reference: #174
1 parent dc61478 commit 769e1d1

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.changelog/175.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:note
2+
This Go module has been updated to Go 1.17 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). Any consumers building on earlier Go versions may experience errors.
3+
```

.github/workflows/ci-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
strategy:
3535
matrix:
36-
go-version: [ '1.17', '1.16' ]
36+
go-version: [ '1.18', '1.17' ]
3737
steps:
3838
- uses: actions/checkout@v3
3939
- uses: actions/setup-go@v2

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.16.13
1+
1.17.8

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ linters:
1717
# - paralleltest # Reference: https://github.com/kunwardeep/paralleltest/issues/14
1818
- predeclared
1919
- staticcheck
20-
# - tenv # TODO: Enable when upgrading Go 1.16 to 1.17
20+
- tenv
2121
- unconvert
2222
- unparam
2323
- varcheck

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Providers built on terraform-plugin-go will only be usable with Terraform
2929
v0.12.0 and later. Developing providers for versions of Terraform below 0.12.0
3030
is unsupported by the Terraform Plugin SDK team.
3131

32+
## Go Compatibility
33+
34+
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.
35+
36+
Currently, that means Go **1.17** or later must be used when including this project as a dependency.
37+
3238
## Getting Started
3339

3440
terraform-plugin-go is targeted towards experienced Terraform developers.

go.mod

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hashicorp/terraform-plugin-go
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/google/go-cmp v0.5.7
@@ -16,3 +16,19 @@ require (
1616
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.2.0
1717
google.golang.org/protobuf v1.28.0
1818
)
19+
20+
require (
21+
github.com/fatih/color v1.7.0 // indirect
22+
github.com/golang/protobuf v1.5.2 // indirect
23+
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
24+
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb // indirect
25+
github.com/mattn/go-colorable v0.1.4 // indirect
26+
github.com/mattn/go-isatty v0.0.10 // indirect
27+
github.com/oklog/run v1.0.0 // indirect
28+
github.com/vmihailenco/tagparser v0.1.1 // indirect
29+
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect
30+
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 // indirect
31+
golang.org/x/text v0.3.3 // indirect
32+
google.golang.org/appengine v1.6.5 // indirect
33+
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
34+
)

0 commit comments

Comments
 (0)