opentofu/internal/plans
Martin Atkins 3cd069900b core: Use DynamicExpand even for root module outputs
We previously had a special case in the graph transformer for output
values where it would directly create an individual output value node
instead of an "expand" node as we would do for output values in nested
modules.

While it's true that we do always know that expanding a root module
output value will always produce exactly one instance, treating this case
as special creates the risk of those two codepaths diverging in other
ways.

Instead, we'll let the expand node also deal with root modules and
minimize the special case only to how we look up any changes for the
output values, since the design of plans.Changes is a bit awkward and
requires us to ask the question differently for root module output values.
Otherwise, the behavior will now be consistent across all output values
regardless of module.
2022-07-22 15:25:22 -07:00
..
internal/planproto core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00
objchange add test for planing unknown data source values 2021-10-05 12:31:23 -04:00
planfile core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00
action_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
action.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
changes_src.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
changes_state.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_sync.go core: Use DynamicExpand even for root module outputs 2022-07-22 15:25:22 -07:00
changes_test.go command: Render "moved" annotations in plan UI 2021-09-03 17:44:07 -04:00
changes.go core: Use DynamicExpand even for root module outputs 2022-07-22 15:25:22 -07:00
conditions.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
doc.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
dynamic_value.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan_test.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan.go core: Store condition block results in plan 2022-04-04 15:36:29 -04:00
resourceinstancechangeactionreason_string.go core: Report reason for deferring data read until apply 2022-05-09 11:12:47 -07:00