Skip to content

Commit

Permalink
Update for Go 1.17 release.
Browse files Browse the repository at this point in the history
Updated our supported versions and test matrices in accordance with our
support policy.
  • Loading branch information
paddycarver committed Aug 31, 2021
1 parent 72980c4 commit d0a0294
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
82 changes: 41 additions & 41 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ commands:
- "/go/pkg/mod"

jobs:
"docker-go115 build":
"docker-go116 build":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.15
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
steps:
- get_dependencies
- run: go build ./...
"docker-go115 test":
"docker-go116 test":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.15
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
environment:
TF_ACC_TERRAFORM_VERSION: "0.12.26"
parameters:
Expand All @@ -42,36 +42,36 @@ jobs:
destination: raw-test-output
- store_test_results:
path: << parameters.test_results >>
"docker-go115 vet":
"docker-go116 vet":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.15
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
steps:
- get_dependencies
- run: go vet ./...
"docker-go115 gofmt":
"docker-go116 gofmt":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.15
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
steps:
- get_dependencies
- run: ./scripts/gofmtcheck.sh
"docker-go115 release":
"docker-go116 release":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.15
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
steps:
- add_ssh_keys:
fingerprints:
- "3b:ec:3f:f1:0d:1a:a9:2c:a6:6f:03:cb:46:37:11:50"
- get_dependencies
- run: ./scripts/release/release.sh
"docker-go116 build":
"docker-go117 build":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
- image: docker.mirror.hashicorp.services/circleci/golang:1.17
steps:
- get_dependencies
- run: go build ./...
"docker-go116 test":
"docker-go117 test":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
- image: docker.mirror.hashicorp.services/circleci/golang:1.17
environment:
TF_ACC_TERRAFORM_VERSION: "0.12.26"
parameters:
Expand All @@ -91,15 +91,15 @@ jobs:
destination: raw-test-output
- store_test_results:
path: << parameters.test_results >>
"docker-go116 vet":
"docker-go117 vet":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
- image: docker.mirror.hashicorp.services/circleci/golang:1.17
steps:
- get_dependencies
- run: go vet ./...
"docker-go116 gofmt":
"docker-go117 gofmt":
docker:
- image: docker.mirror.hashicorp.services/circleci/golang:1.16
- image: docker.mirror.hashicorp.services/circleci/golang:1.17
steps:
- get_dependencies
- run: ./scripts/gofmtcheck.sh
Expand All @@ -108,16 +108,6 @@ workflows:
version: 2
pr:
jobs:
- "docker-go115 build"
- "docker-go115 test":
requires:
- "docker-go115 build"
- "docker-go115 vet":
requires:
- "docker-go115 build"
- "docker-go115 gofmt":
requires:
- "docker-go115 build"
- "docker-go116 build"
- "docker-go116 test":
requires:
Expand All @@ -128,18 +118,18 @@ workflows:
- "docker-go116 gofmt":
requires:
- "docker-go116 build"
release:
jobs:
- "docker-go115 build"
- "docker-go115 test":
- "docker-go117 build"
- "docker-go117 test":
requires:
- "docker-go115 build"
- "docker-go115 vet":
- "docker-go117 build"
- "docker-go117 vet":
requires:
- "docker-go115 build"
- "docker-go115 gofmt":
- "docker-go117 build"
- "docker-go117 gofmt":
requires:
- "docker-go115 build"
- "docker-go117 build"
release:
jobs:
- "docker-go116 build"
- "docker-go116 test":
requires:
Expand All @@ -150,22 +140,32 @@ workflows:
- "docker-go116 gofmt":
requires:
- "docker-go116 build"
- "docker-go117 build"
- "docker-go117 test":
requires:
- "docker-go117 build"
- "docker-go117 vet":
requires:
- "docker-go117 build"
- "docker-go117 gofmt":
requires:
- "docker-go117 build"
- trigger-release:
filters:
branches:
only:
- main
type: approval
- "docker-go115 release":
- "docker-go116 release":
filters:
branches:
only:
- main
requires:
- trigger-release
- "docker-go115 test"
- "docker-go115 vet"
- "docker-go115 gofmt"
- "docker-go116 test"
- "docker-go116 vet"
- "docker-go116 gofmt"
- "docker-go117 test"
- "docker-go117 vet"
- "docker-go117 gofmt"
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.8
1.16.7
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ When running provider tests, Terraform 0.12.26 or later is needed for version 2.

The Terraform Plugin SDK 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 the SDK.

Currently, that means Go **1.15** or later must be used when building a provider with the SDK.
Currently, that means Go **1.16** or later must be used when building a provider with the SDK.

## Getting Started

Expand Down

0 comments on commit d0a0294

Please sign in to comment.