Skip to content

Commit 06e7da0

Browse files
committed
Merge v2.20.0
2 parents 23001ad + a21509d commit 06e7da0

File tree

18 files changed

+1003
-60
lines changed

18 files changed

+1003
-60
lines changed

.changelog/1006.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:feature
2+
helper/logging: New `NewLoggingHTTPTransport()` and `NewSubsystemLoggingHTTPTransport()` functions, providing `http.RoundTripper` Transport implementations that log request/response using [terraform-plugin-log](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-log) ([#546](https://github.com/hashicorp/terraform-plugin-sdk/issues/546))
3+
```
4+
5+
```release-note:note
6+
helper/logging: Existing `NewTransport()` is now deprecated in favour of using the new `NewLoggingHTTPTransport()` or `NewSubsystemLoggingHTTPTransport()`
7+
```

.github/CONTRIBUTING.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ or submitting a patch.
5050

5151
## New Issue
5252

53-
We welcome issues of all kinds including feature requests, bug reports or documentation suggestions. Below are guidelines for well-formed issues of each type.
53+
We welcome issues of all kinds including feature requests, bug reports or documentation contributions. Below are guidelines for well-formed issues of each type.
5454

5555
### Bug Reports
5656

@@ -67,6 +67,20 @@ It is possible we already fixed the bug you're experiencing.
6767

6868
- [ ] **Include a use case description**: In addition to describing the behavior of the feature you'd like to see added, it's helpful to also lay out the reason why the feature would be important and how it would benefit the wider Terraform ecosystem. Use case in context of 1 provider is good, wider context of more providers is better.
6969

70+
### Documentation Contributions
71+
72+
- [ ] **Search for possible duplicate suggestions**: It's helpful to keep
73+
suggestions consolidated to one thread, so do a quick search on existing
74+
issues to check if anybody else has suggested the same thing. You can scope
75+
searches by the label `documentation` to help narrow things down.
76+
77+
- [ ] **Describe the questions you're hoping the documentation will answer**:
78+
It's very helpful when writing documentation to have specific questions like
79+
"how do I implement a default value?" in mind. This helps us ensure the
80+
documentation is targeted, specific, and framed in a useful way.
81+
82+
- [ ] **Contribute**: This repository contains the markdown files that generate versioned documentation for [terraform.io/plugin/sdkv2](https://www.terraform.io/plugin/sdkv2). Please open a pull request with documentation changes. Refer to the [website README](../website/README.md) for more information.
83+
7084
## New Pull Request
7185

7286
Thank you for contributing!

.github/workflows/ci-go.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
with:
2222
go-version-file: 'go.mod'
2323
- run: go mod download
24-
- uses: golangci/golangci-lint-action@v3.2.0
24+
- uses: golangci/golangci-lint-action@v3
25+
with:
26+
version: latest
2527
terraform-provider-corner:
2628
defaults:
2729
run:

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
node_modules
22
website-preview
3-
.idea/
3+
4+
# Jetbrains IDEs
5+
.idea/
6+
*.iws
7+

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# 2.20.0 (July 28, 2022)
2+
3+
NOTES:
4+
5+
* helper/logging: Existing `NewTransport()` is now deprecated in favour of using the new `NewLoggingHTTPTransport()` or `NewSubsystemLoggingHTTPTransport()` ([#1006](https://github.com/hashicorp/terraform-plugin-sdk/issues/1006))
6+
7+
FEATURES:
8+
9+
* helper/logging: New `NewLoggingHTTPTransport()` and `NewSubsystemLoggingHTTPTransport()` functions, providing `http.RoundTripper` Transport implementations that log request/response using [terraform-plugin-log](https://pkg.go.dev/github.com/hashicorp/terraform-plugin-log) ([#546](https://github.com/hashicorp/terraform-plugin-sdk/issues/546)) ([#1006](https://github.com/hashicorp/terraform-plugin-sdk/issues/1006))
10+
111
# 2.19.0 (July 15, 2022)
212

313
NOTES:

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ WEBSITE_DOCKER_RUN_FLAGS=--interactive \
2222

2323
default: test
2424

25-
test: fmtcheck generate
25+
test: generate
2626
go test ./...
2727

28+
lint:
29+
golangci-lint run
30+
2831
generate:
2932
go generate ./...
3033

3134
fmt:
32-
gofmt -w $(GOFMT_FILES)
33-
34-
fmtcheck:
35-
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
35+
gofmt -s -w -e $(GOFMT_FILES)
3636

3737
# Run the terraform.io website to preview local content changes
3838
website:
@@ -55,4 +55,4 @@ website/build-local:
5555
@docker build https://github.com/hashicorp/terraform-website.git\#$(WEBSITE_BRANCH) \
5656
-t $(WEBSITE_DOCKER_IMAGE_LOCAL)
5757

58-
.PHONY: default fmt fmtcheck generate test website website/local website/build-local
58+
.PHONY: default fmt lint generate test website website/local website/build-local

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/hashicorp/terraform-exec v0.17.2
2020
github.com/hashicorp/terraform-json v0.14.0
2121
github.com/hashicorp/terraform-plugin-go v0.12.0
22-
github.com/hashicorp/terraform-plugin-log v0.6.0
22+
github.com/hashicorp/terraform-plugin-log v0.7.0
2323
github.com/mitchellh/copystructure v1.2.0
2424
github.com/mitchellh/go-testing-interface v1.14.1
2525
github.com/mitchellh/mapstructure v1.5.0

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ github.com/hashicorp/terraform-json v0.14.0 h1:sh9iZ1Y8IFJLx+xQiKHGud6/TSUCM0N8e
127127
github.com/hashicorp/terraform-json v0.14.0/go.mod h1:5A9HIWPkk4e5aeeXIBbkcOvaZbIYnAIkEyqP2pNSckM=
128128
github.com/hashicorp/terraform-plugin-go v0.12.0 h1:6wW9mT1dSs0Xq4LR6HXj1heQ5ovr5GxXNJwkErZzpJw=
129129
github.com/hashicorp/terraform-plugin-go v0.12.0/go.mod h1:kwhmaWHNDvT1B3QiSJdAtrB/D4RaKSY/v3r2BuoWK4M=
130-
github.com/hashicorp/terraform-plugin-log v0.6.0 h1:/Vq78uSIdUSZ3iqDc9PESKtwt8YqNKN6u+khD+lLjuw=
131130
github.com/hashicorp/terraform-plugin-log v0.6.0/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4=
131+
github.com/hashicorp/terraform-plugin-log v0.7.0 h1:SDxJUyT8TwN4l5b5/VkiTIaQgY6R+Y2BQ0sRZftGKQs=
132+
github.com/hashicorp/terraform-plugin-log v0.7.0/go.mod h1:p4R1jWBXRTvL4odmEkFfDdhUjHf9zcs/BCoNHAc7IK4=
132133
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c h1:D8aRO6+mTqHfLsK/BC3j5OAoogv1WLRWzY1AaTo3rBg=
133134
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c/go.mod h1:Wn3Na71knbXc1G8Lh+yu/dQWWJeFQEpDeJMtWMtlmNI=
134135
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 h1:HKLsbzeOsfXmKNpr3GiT18XAblV0BjCbzL8KQAMZGa0=

0 commit comments

Comments
 (0)