You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Computes the ProposedNewState from priorState and config.
This hasn't been updated in a while but upstream has had a few changes - we might need to update our copy too.
This is a bit more involved than it is in the SDKV2 bridge - there we have a direct copy of the code which we use as is - in PF it is re-implemented as it works with the tftypes instead of the cty values.
Example
.
Output of pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
So I think this is interesting, we should be using vendored objchange.ProposedNew instead of the homegrown version to minimize discrepancies. Looks like one attempt was made #1276 but rejected for expediency as it had some concerns. Still I think that might be the way, we might need to add test cases to push through concerns but ultimately use the implementation from opentofu.
OpenTofu planner code is now used with Plugin Framework providers to
emulate Terraform CLI behavior for `objchange.ProposedNew`. Note that
this code was already in use for SDKv2-based resources prior to the
change. The vendored code replaces a custom implementation that is now
removed.
Fixes#2172
Observable changes: Plugin Framework based resources may now reorder
outputs for Set collections.
This change is known to fix bugs such as
#2192 - to be
confirmed with a regression test in a follow-up PR.
What happened?
We have an adaptation of upstream's objchange in PF: https://github.com/opentofu/opentofu/tree/main/internal/plans/objchange
pulumi-terraform-bridge/pf/internal/pfutils/proposed_new.go
Lines 26 to 27 in 18db7c5
This hasn't been updated in a while but upstream has had a few changes - we might need to update our copy too.
This is a bit more involved than it is in the SDKV2 bridge - there we have a direct copy of the code which we use as is - in PF it is re-implemented as it works with the tftypes instead of the cty values.
Example
.
Output of
pulumi about
.
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: