Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump github.com/hashicorp/terraform-plugin-framework from 1.10.0 to 1.11.0 #542

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 7, 2024

Bumps github.com/hashicorp/terraform-plugin-framework from 1.10.0 to 1.11.0.

Release notes

Sourced from github.com/hashicorp/terraform-plugin-framework's releases.

v1.11.0

NOTES:

  • Framework reflection logic (Config.Get, Plan.Get, etc.) for structs with tfsdk 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 (tfsdk:"-") can be added to ignore all promoted fields.

For example, the following struct will now return an error diagnostic:

type thingResourceModel struct {
	Attr1 types.String `tfsdk:"attr_1"`
	Attr2 types.Bool   `tfsdk:"attr_2"`
// Previously, this embedded struct was ignored, will now promote underlying fields
embeddedModel

}
type embeddedModel struct {
// No tfsdk tag
ExportedField string
}

To preserve the original behavior, a tfsdk ignore tag can be added to ignore the entire embedded struct:

type thingResourceModel struct {
	Attr1 types.String `tfsdk:"attr_1"`
	Attr2 types.Bool   `tfsdk:"attr_2"`
// This embedded struct will now be ignored
embeddedModel      `tfsdk:"-"`

}
type embeddedModel struct {
ExportedField string
}

(#1021)

ENHANCEMENTS:

  • all: Added embedded struct support for object to struct conversions with tfsdk tags (#1021)
Changelog

Sourced from github.com/hashicorp/terraform-plugin-framework's changelog.

1.11.0 (August 06, 2024)

NOTES:

  • Framework reflection logic (Config.Get, Plan.Get, etc.) for structs with tfsdk 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 (tfsdk:"-") can be added to ignore all promoted fields.

For example, the following struct will now return an error diagnostic:

type thingResourceModel struct {
	Attr1 types.String `tfsdk:"attr_1"`
	Attr2 types.Bool   `tfsdk:"attr_2"`
// Previously, this embedded struct was ignored, will now promote underlying fields
embeddedModel

}
type embeddedModel struct {
// No tfsdk tag
ExportedField string
}

To preserve the original behavior, a tfsdk ignore tag can be added to ignore the entire embedded struct:

type thingResourceModel struct {
	Attr1 types.String `tfsdk:"attr_1"`
	Attr2 types.Bool   `tfsdk:"attr_2"`
// This embedded struct will now be ignored
embeddedModel      `tfsdk:"-"`

}
type embeddedModel struct {
ExportedField string
}

(#1021)

ENHANCEMENTS:

  • all: Added embedded struct support for object to struct conversions with tfsdk tags (#1021)
Commits
  • c338d61 Update changelog
  • 4d10c17 all: Add support for embedded struct types in object conversions (#1021)
  • d6c8b06 docs: Add more clarification for unknown values during config validation (#1023)
  • 0f21b14 Result of tsccr-helper -log-level=info gha update -latest . (#1020)
  • 12d7331 Result of tsccr-helper -log-level=info gha update -latest . (#1018)
  • See full diff in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added area/go Pull requests that update Go code hint/dependencies Pull requests that update a dependency file labels Aug 7, 2024
@jujubot
Copy link
Contributor

jujubot commented Aug 7, 2024

Thanks for opening a pull request! Please follow the instructions here to ensure your pull request is ready for review. Then, a maintainer will review your patch.

@hpidcock @anvial

1 similar comment
@jujubot
Copy link
Contributor

jujubot commented Aug 7, 2024

Thanks for opening a pull request! Please follow the instructions here to ensure your pull request is ready for review. Then, a maintainer will review your patch.

@hpidcock @anvial

@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.11.0 branch from 5423cfb to 44756c6 Compare August 8, 2024 17:26
Bumps [github.com/hashicorp/terraform-plugin-framework]
(https://github.com/hashicorp/terraform-plugin-framework) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md)
- [Commits](hashicorp/terraform-plugin-framework@v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@Aflynn50 Aflynn50 force-pushed the dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.11.0 branch from 44756c6 to 838f4b4 Compare August 9, 2024 14:07
@hmlanigan hmlanigan added state/codefreeze this pr cannot land until the code freeze has lifted. and removed state/codefreeze this pr cannot land until the code freeze has lifted. labels Sep 10, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 19, 2024

A newer version of github.com/hashicorp/terraform-plugin-framework exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@hmlanigan
Copy link
Member

/build

@hmlanigan
Copy link
Member

@dependabot rebase

Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 23, 2024

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@hmlanigan
Copy link
Member

@dependabot recreate

@hmlanigan hmlanigan closed this Sep 23, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 23, 2024

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/go_modules/github.com/hashicorp/terraform-plugin-framework-1.11.0 branch September 23, 2024 13:42
jujubot added a commit that referenced this pull request Sep 23, 2024
#588

## Description

Combines 3 dependabot PRs into one: #546, #545, #542

Bumps [github.com/juju/utils/v3](https://github.com/juju/utils) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/juju/utils/releases)
- [Commits](juju/[email protected])

Bumps [github.com/hashicorp/terraform-plugin-testing] (https://github.com/hashicorp/terraform-plugin-testing) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-testing/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-testing/blob/main/CHANGELOG.md)
- [Commits](hashicorp/[email protected])

Bumps [github.com/hashicorp/terraform-plugin-framework] (https://github.com/hashicorp/terraform-plugin-framework) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md)
- [Commits](hashicorp/[email protected])


## Type of change

- Maintenance work (repository related, like Github actions, or revving the Go version, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/go Pull requests that update Go code hint/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants