Skip to content

Commit

Permalink
Bump github.com/hashicorp/terraform-plugin-framework from 1.10.0 to 1…
Browse files Browse the repository at this point in the history
….11.0 in the terraform group (#212)

Bumps the terraform group with 1 update:
[github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework).

Updates `github.com/hashicorp/terraform-plugin-framework` from 1.10.0 to
1.11.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/hashicorp/terraform-plugin-framework/releases">github.com/hashicorp/terraform-plugin-framework's
releases</a>.</em></p>
<blockquote>
<h2>v1.11.0</h2>
<p>NOTES:</p>
<ul>
<li>Framework reflection logic (<code>Config.Get</code>,
<code>Plan.Get</code>, etc.) for structs with
<code>tfsdk</code> field tags has been updated to support embedded
structs that promote exported
fields. For existing structs that embed unexported structs with exported
fields, a tfsdk
ignore tag (<code>tfsdk:&quot;-&quot;</code>) can be added to ignore all
promoted fields.</li>
</ul>
<p>For example, the following struct will now return an error
diagnostic:</p>
<pre lang="go"><code>type thingResourceModel struct {
	Attr1 types.String `tfsdk:&quot;attr_1&quot;`
	Attr2 types.Bool   `tfsdk:&quot;attr_2&quot;`
<pre><code>// Previously, this embedded struct was ignored, will now
promote underlying fields
embeddedModel
</code></pre>
<p>}</p>
<p>type embeddedModel struct {<br />
// No <code>tfsdk</code> tag<br />
ExportedField string<br />
}<br />
</code></pre></p>
<p>To preserve the original behavior, a tfsdk ignore tag can be added to
ignore the entire embedded struct:</p>
<pre lang="go"><code>type thingResourceModel struct {
	Attr1 types.String `tfsdk:&quot;attr_1&quot;`
	Attr2 types.Bool   `tfsdk:&quot;attr_2&quot;`
<pre><code>// This embedded struct will now be ignored
embeddedModel      `tfsdk:&amp;quot;-&amp;quot;`
</code></pre>
<p>}</p>
<p>type embeddedModel struct {<br />
ExportedField string<br />
}<br />
</code></pre></p>
<p>(<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</p>
<p>ENHANCEMENTS:</p>
<ul>
<li>all: Added embedded struct support for object to struct conversions
with <code>tfsdk</code> tags (<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md">github.com/hashicorp/terraform-plugin-framework's
changelog</a>.</em></p>
<blockquote>
<h2>1.11.0 (August 06, 2024)</h2>
<p>NOTES:</p>
<ul>
<li>Framework reflection logic (<code>Config.Get</code>,
<code>Plan.Get</code>, etc.) for structs with
<code>tfsdk</code> field tags has been updated to support embedded
structs that promote exported
fields. For existing structs that embed unexported structs with exported
fields, a tfsdk
ignore tag (<code>tfsdk:&quot;-&quot;</code>) can be added to ignore all
promoted fields.</li>
</ul>
<p>For example, the following struct will now return an error
diagnostic:</p>
<pre lang="go"><code>type thingResourceModel struct {
	Attr1 types.String `tfsdk:&quot;attr_1&quot;`
	Attr2 types.Bool   `tfsdk:&quot;attr_2&quot;`
<pre><code>// Previously, this embedded struct was ignored, will now
promote underlying fields
embeddedModel
</code></pre>
<p>}</p>
<p>type embeddedModel struct {<br />
// No <code>tfsdk</code> tag<br />
ExportedField string<br />
}<br />
</code></pre></p>
<p>To preserve the original behavior, a tfsdk ignore tag can be added to
ignore the entire embedded struct:</p>
<pre lang="go"><code>type thingResourceModel struct {
	Attr1 types.String `tfsdk:&quot;attr_1&quot;`
	Attr2 types.Bool   `tfsdk:&quot;attr_2&quot;`
<pre><code>// This embedded struct will now be ignored
embeddedModel      `tfsdk:&amp;quot;-&amp;quot;`
</code></pre>
<p>}</p>
<p>type embeddedModel struct {<br />
ExportedField string<br />
}<br />
</code></pre></p>
<p>(<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</p>
<p>ENHANCEMENTS:</p>
<ul>
<li>all: Added embedded struct support for object to struct conversions
with <code>tfsdk</code> tags (<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/hashicorp/terraform-plugin-framework/commit/c338d617765d8c591c90af0b700faeeafdafe26b"><code>c338d61</code></a>
Update changelog</li>
<li><a
href="https://github.com/hashicorp/terraform-plugin-framework/commit/4d10c1755a0dcd17f0b6c020646b452f6ebe2047"><code>4d10c17</code></a>
all: Add support for embedded struct types in object conversions (<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1021">#1021</a>)</li>
<li><a
href="https://github.com/hashicorp/terraform-plugin-framework/commit/d6c8b06d12c57a42a097e4ac7b53bc770640623f"><code>d6c8b06</code></a>
docs: Add more clarification for unknown values during config validation
(<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1023">#1023</a>)</li>
<li><a
href="https://github.com/hashicorp/terraform-plugin-framework/commit/0f21b1420303e808fdef7aa64be043a384dcb3ef"><code>0f21b14</code></a>
Result of tsccr-helper -log-level=info gha update -latest . (<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1020">#1020</a>)</li>
<li><a
href="https://github.com/hashicorp/terraform-plugin-framework/commit/12d7331b555f026a11462f9e25bf686b1d888eae"><code>12d7331</code></a>
Result of tsccr-helper -log-level=info gha update -latest . (<a
href="https://redirect.github.com/hashicorp/terraform-plugin-framework/issues/1018">#1018</a>)</li>
<li>See full diff in <a
href="https://github.com/hashicorp/terraform-plugin-framework/compare/v1.10.0...v1.11.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/hashicorp/terraform-plugin-framework&package-manager=go_modules&previous-version=1.10.0&new-version=1.11.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Aug 7, 2024
1 parent 46fd54d commit 4e4444b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/hashicorp/go-cleanhttp v0.5.2
github.com/hashicorp/go-retryablehttp v0.7.7
github.com/hashicorp/terraform-plugin-docs v0.19.4
github.com/hashicorp/terraform-plugin-framework v1.10.0
github.com/hashicorp/terraform-plugin-framework v1.11.0
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0
github.com/hashicorp/terraform-plugin-go v0.23.0
github.com/hashicorp/terraform-plugin-log v0.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7
github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A=
github.com/hashicorp/terraform-plugin-docs v0.19.4 h1:G3Bgo7J22OMtegIgn8Cd/CaSeyEljqjH3G39w28JK4c=
github.com/hashicorp/terraform-plugin-docs v0.19.4/go.mod h1:4pLASsatTmRynVzsjEhbXZ6s7xBlUw/2Kt0zfrq8HxA=
github.com/hashicorp/terraform-plugin-framework v1.10.0 h1:xXhICE2Fns1RYZxEQebwkB2+kXouLC932Li9qelozrc=
github.com/hashicorp/terraform-plugin-framework v1.10.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework v1.11.0 h1:M7+9zBArexHFXDx/pKTxjE6n/2UCXY6b8FIq9ZYhwfE=
github.com/hashicorp/terraform-plugin-framework v1.11.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM=
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0 h1:bxZfGo9DIUoLLtHMElsu+zwqI4IsMZQBRRy4iLzZJ8E=
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0/go.mod h1:wGeI02gEhj9nPANU62F2jCaHjXulejm/X+af4PdZaNo=
github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co=
Expand Down

0 comments on commit 4e4444b

Please sign in to comment.