Skip to content

Commit

Permalink
Bump Expected Minimum Go Version to 1.17 (#51)
Browse files Browse the repository at this point in the history
Reference: #50
  • Loading branch information
bflad committed Apr 11, 2022
1 parent 49f9236 commit 94541a8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/51.txt
@@ -0,0 +1,3 @@
```release-note:note
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.
```
2 changes: 1 addition & 1 deletion .github/workflows/ci-go.yml
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.17', '1.16' ]
go-version: [ '1.18', '1.17' ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand Down
2 changes: 1 addition & 1 deletion .go-version
@@ -1 +1 @@
1.16.7
1.17.8
2 changes: 1 addition & 1 deletion .golangci.yml
Expand Up @@ -17,7 +17,7 @@ linters:
# - paralleltest # Reference: https://github.com/kunwardeep/paralleltest/issues/14
- predeclared
- staticcheck
# - tenv # TODO: Enable when upgrading Go 1.16 to 1.17
- tenv
- unconvert
- unparam
- varcheck
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -6,9 +6,9 @@ terraform-plugin-log is a helper module for logging from Terraform providers. It

## Go Compatibility

terraform-plugin-log is built in Go, and uses 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 terraform-plugin-log.
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.16** or later must be used when using terraform-plugin-log.
Currently, that means Go **1.17** or later must be used when including this project as a dependency.

## Contributing

Expand Down
9 changes: 8 additions & 1 deletion go.mod
@@ -1,10 +1,17 @@
module github.com/hashicorp/terraform-plugin-log

go 1.16
go 1.17

require (
github.com/google/go-cmp v0.5.7
github.com/hashicorp/go-hclog v1.2.0
github.com/mitchellh/go-testing-interface v1.14.1
)

require (
github.com/fatih/color v1.7.0 // indirect
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-isatty v0.0.10 // indirect
github.com/stretchr/testify v1.3.0 // indirect
golang.org/x/sys v0.0.0-20191008105621-543471e840be // indirect
)

0 comments on commit 94541a8

Please sign in to comment.