Skip to content

Commit 03a71d0

Browse files
committed
Merge tag 'v2.27.0' into upstream-v2.27.0
2 parents 3fa930f + a37a8f9 commit 03a71d0

File tree

226 files changed

+1646
-302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+1646
-302
lines changed

.changes/2.27.0.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## 2.27.0 (June 28, 2023)
2+
3+
NOTES:
4+
5+
* helper/schema: Consumers directly referencing the `Resource` type `Schema` field should switch to the `SchemaMap` method to ensure new `SchemaFunc` field data is properly retrieved ([#1217](https://github.com/hashicorp/terraform-plugin-sdk/issues/1217))
6+
7+
ENHANCEMENTS:
8+
9+
* all: Improved SDK logging performance when messages would be skipped due to configured logging level ([#1202](https://github.com/hashicorp/terraform-plugin-sdk/issues/1202))
10+
* helper/schema: Added `Resource` type `SchemaFunc` field and `SchemaMap` method, which can reduce resident memory usage with large schemas ([#1217](https://github.com/hashicorp/terraform-plugin-sdk/issues/1217))
11+

.copywrite.hcl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
schema_version = 1
2+
3+
project {
4+
license = "MPL-2.0"
5+
copyright_year = 2019
6+
7+
header_ignore = [
8+
# changie tooling configuration and CHANGELOG entries (prose)
9+
".changes/unreleased/*.yaml",
10+
".changie.yaml",
11+
12+
# GitHub issue template configuration
13+
".github/ISSUE_TEMPLATE/*.yml",
14+
15+
# GitHub Actions workflow-specific configurations
16+
".github/labeler-*.yml",
17+
18+
# golangci-lint tooling configuration
19+
".golangci.yml",
20+
21+
# GoReleaser tooling configuration
22+
".goreleaser.yml",
23+
24+
# Release Engineering tooling configuration
25+
".release/*.hcl",
26+
]
27+
}

.github/CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ before raising a pull request.
100100

101101
- [ ] **Changelog**: Refer to the [changelog](#changelog) section for more information about how to create changelog entries.
102102

103+
- [ ] **License Headers**: All source code requires a license header at the top of the file, refer to [License Headers](#license-headers) for information on how to autogenerate these headers.
104+
103105
### Cosmetic changes, code formatting, and typos
104106

105107
In general we do not accept PRs containing only the following changes:
@@ -203,6 +205,13 @@ A breaking-change entry should use the `BREAKING CHANGES` kind and have a prefix
203205
tfsdk: The `Example` type `Old` field has been removed since it is not necessary
204206

205207
``````
208+
209+
### License Headers
210+
211+
All source code files (excluding autogenerated files like `go.mod`, prose, and files excluded in [.copywrite.hcl](../.copywrite.hcl)) must have a license header at the top.
212+
213+
This can be autogenerated by running `make generate` or running `go generate ./...` in the [/tools](../tools) directory.
214+
206215
## Linting
207216

208217
GitHub Actions workflow bug and style checking is performed via [`actionlint`](https://github.com/rhysd/actionlint).

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ updates:
1414
- dependency-name: "github.com/hashicorp/go-hclog"
1515
# go-plugin should only be updated via terraform-plugin-go
1616
- dependency-name: "github.com/hashicorp/go-plugin"
17+
- package-ecosystem: "gomod"
18+
directory: "/tools"
19+
schedule:
20+
interval: "daily"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
actionlint:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
17-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
16+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
17+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
1818
with:
1919
go-version-file: 'go.mod'
2020
- run: go install github.com/rhysd/actionlint/cmd/actionlint@latest

.github/workflows/ci-go.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
golangci-lint:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
20-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
19+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
20+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
2121
with:
2222
go-version-file: 'go.mod'
2323
- run: go mod download
24-
- uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
24+
- uses: golangci/golangci-lint-action@639cd343e1d3b897ff35927a75193d57cfcba299 # v3.6.0
2525
with:
2626
version: latest
2727
terraform-provider-corner:
@@ -30,12 +30,12 @@ jobs:
3030
working-directory: terraform-provider-corner
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
34-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
33+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
34+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
3535
with:
3636
path: terraform-provider-corner
3737
repository: hashicorp/terraform-provider-corner
38-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
38+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
3939
with:
4040
go-version-file: 'go.mod'
4141
- run: go mod edit -replace=github.com/hashicorp/terraform-plugin-sdk/v2=../
@@ -50,8 +50,8 @@ jobs:
5050
matrix:
5151
go-version: [ '1.20', '1.19' ]
5252
steps:
53-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
54-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
53+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
54+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
5555
with:
5656
go-version: ${{ matrix.go-version }}
5757
- run: go mod download

.github/workflows/ci-goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
check:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
17-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
16+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
17+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
1818
with:
1919
go-version-file: 'go.mod'
20-
- uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
20+
- uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
2121
with:
2222
args: check

.github/workflows/compliance.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: compliance
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
# Reference: ENGSRV-059
11+
copywrite:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
15+
- uses: hashicorp/setup-copywrite@867a1a2a064a0626db322392806428f7dc59cb3e # v1.1.2
16+
- run: copywrite headers --plan
17+
- run: copywrite license --plan

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
lock:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836 # v4.0.0
11+
- uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21 # v4.0.1
1212
with:
1313
github-token: ${{ github.token }}
1414
issue-comment: >

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
32+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
3333
with:
3434
fetch-depth: 0
3535
# Avoid persisting GITHUB_TOKEN credentials as they take priority over our service account PAT for `git push` operations
@@ -58,7 +58,7 @@ jobs:
5858
runs-on: ubuntu-latest
5959
steps:
6060
- name: Checkout
61-
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
61+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
6262
with:
6363
fetch-depth: 0
6464
# Default input is the SHA that initially triggered the workflow. As we created a new commit in the previous job,
@@ -83,12 +83,12 @@ jobs:
8383
contents: write # Needed for goreleaser to create GitHub release
8484
issues: write # Needed for goreleaser to close associated milestone
8585
steps:
86-
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
86+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
8787
with:
8888
ref: ${{ inputs.versionNumber }}
8989
fetch-depth: 0
9090

91-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
91+
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
9292
with:
9393
go-version-file: 'go.mod'
9494

@@ -97,7 +97,7 @@ jobs:
9797
cd .changes
9898
sed -e "1{/# /d;}" -e "2{/^$/d;}" ${{ needs.changelog-version.outputs.version }}.md > /tmp/release-notes.txt
9999
100-
- uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
100+
- uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
101101
env:
102102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103103
with:

0 commit comments

Comments
 (0)