Skip to content

Commit c8e465f

Browse files
committed
Merge tag 'v2.18.0' into upstream-v2.18.0
2 parents 9a25472 + 079dac2 commit c8e465f

File tree

19 files changed

+255
-81
lines changed

19 files changed

+255
-81
lines changed

.changelog/983.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
helper/resource: Ensured errors are always logged.
3+
```

.changelog/993.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
helper/resource: Added `TF_ACC_LOG`, `TF_LOG_CORE`, and `TF_LOG_PROVIDER` environment variable handling for Terraform versions 0.15 and later
3+
```

.changelog/996.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
helper/schema: Added sdk.proto logger request duration and response diagnostics logging
3+
```

.github/workflows/add-content-to-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
custom_field_values: '[{\"name\":\"Priority\",\"type\":\"single_select\",\"value\":\"Triage Next\"}]'
3131
- name: "Set Pull Request to 'Priority = Triage Next'"
3232
uses: leonsteinhaeuser/project-beta-automations@v1.2.1
33-
if: github.event_name == 'pull_request'
33+
if: github.event_name == 'pull_request_target'
3434
with:
3535
gh_token: ${{ secrets.TF_DEVEX_PROJECT_GITHUB_TOKEN }}
3636
organization: "hashicorp"

.github/workflows/ci-github-actions.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- id: go-version
18-
# Reference: https://github.com/actions/setup-go/issues/23
19-
run: echo "::set-output name=version::$(cat ./.go-version)"
2017
- uses: actions/setup-go@v3
2118
with:
22-
go-version: ${{ steps.go-version.outputs.version }}
19+
go-version-file: 'go.mod'
2320
- run: go install github.com/rhysd/actionlint/cmd/actionlint@latest
2421
- run: actionlint

.github/workflows/ci-go.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
paths:
77
- .github/workflows/ci-go.yml
88
- .golangci.yml
9-
- .go-version
109
- go.mod
1110
- '**.go'
1211

@@ -18,12 +17,9 @@ jobs:
1817
runs-on: ubuntu-latest
1918
steps:
2019
- uses: actions/checkout@v3
21-
- id: go-version
22-
# Reference: https://github.com/actions/setup-go/issues/23
23-
run: echo "::set-output name=version::$(cat ./.go-version)"
2420
- uses: actions/setup-go@v3
2521
with:
26-
go-version: ${{ steps.go-version.outputs.version }}
22+
go-version-file: 'go.mod'
2723
- run: go mod download
2824
- uses: golangci/golangci-lint-action@v3.2.0
2925
terraform-provider-corner:
@@ -37,13 +33,9 @@ jobs:
3733
with:
3834
path: terraform-provider-corner
3935
repository: hashicorp/terraform-provider-corner
40-
- id: go-version
41-
# Reference: https://github.com/actions/setup-go/issues/23
42-
run: echo "::set-output name=version::$(cat ./.go-version)"
43-
working-directory: .
4436
- uses: actions/setup-go@v3
4537
with:
46-
go-version: ${{ steps.go-version.outputs.version }}
38+
go-version-file: 'go.mod'
4739
- run: go mod edit -replace=github.com/hashicorp/terraform-plugin-sdk/v2=../
4840
- run: go mod tidy
4941
- run: go test -v ./...

.github/workflows/ci-goreleaser.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17-
- id: go-version
18-
# Reference: https://github.com/actions/setup-go/issues/23
19-
run: echo "::set-output name=version::$(cat ./.go-version)"
2017
- uses: actions/setup-go@v3
2118
with:
22-
go-version: ${{ steps.go-version.outputs.version }}
19+
go-version-file: 'go.mod'
2320
- uses: goreleaser/goreleaser-action@v3
2421
with:
2522
args: check

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ jobs:
1919
with:
2020
# Required for release notes
2121
fetch-depth: 0
22-
- id: go-version
23-
# Reference: https://github.com/actions/setup-go/issues/23
24-
run: echo "::set-output name=version::$(cat ./.go-version)"
2522
- uses: actions/setup-go@v3
2623
with:
27-
go-version: ${{ steps.go-version.outputs.version }}
24+
go-version-file: 'go.mod'
2825
- name: Generate Release Notes
2926
# Fetch CHANGELOG.md contents up to Git tag prior to this release, skipping top two lines
3027
run: sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > /tmp/release-notes.txt

.go-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 2.18.0 (July 5, 2022)
2+
3+
ENHANCEMENTS:
4+
5+
* helper/resource: Added `TF_ACC_LOG`, `TF_LOG_CORE`, and `TF_LOG_PROVIDER` environment variable handling for Terraform versions 0.15 and later ([#993](https://github.com/hashicorp/terraform-plugin-sdk/issues/993))
6+
* helper/schema: Added sdk.proto logger request duration and response diagnostics logging ([#996](https://github.com/hashicorp/terraform-plugin-sdk/issues/996))
7+
8+
BUG FIXES:
9+
10+
* helper/resource: Ensured errors are always logged. ([#983](https://github.com/hashicorp/terraform-plugin-sdk/issues/983))
11+
112
# 2.17.0 (May 31, 2022)
213

314
NOTES:

0 commit comments

Comments
 (0)