opentofu/internal/states
Martin Atkins 0e4e9f7706 addrs: Be explicit about checkable object address kinds
Previously we were attempting to infer the checkable object address kind
of a given address by whether it included "output" in the position where
a resource type name would otherwise go.

That was already potentially risky because we've historically not
prevented a resource type named "output", and it's also a
forward-compatibility hazard in case we introduce additional object kinds
with entirely-new addressing schemes in future.

Given that, we'll instead always be explicit about what kind of address
we're storing in a wire or file format, so that we can make sure to always
use the intended parser when reading an address back into memory, or
return an error if we encounter a kind we're not familiar with.
2022-08-26 15:47:29 -07:00
..
remote states/statefile: Serialize check results into state snapshots 2022-08-26 15:47:29 -07:00
statefile addrs: Be explicit about checkable object address kinds 2022-08-26 15:47:29 -07:00
statemgr build: Use Go 1.19 2022-08-22 10:59:12 -07:00
checks.go core: Propagate check results accurately from plan to apply 2022-08-26 15:47:29 -07:00
doc.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
instance_generation.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
instance_object_src.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
instance_object_test.go copy Dependencies before sorting in state 2022-04-28 11:44:32 -04:00
instance_object.go copy Dependencies before sorting in state 2022-04-28 11:44:32 -04:00
module.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
objectstatus_string.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
output_value.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
resource_test.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
resource.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
state_deepcopy.go core: Use the new checks package for condition tracking 2022-08-26 15:47:29 -07:00
state_equal.go command/workspace_delete: Allow deleting a workspace with empty husks 2021-10-13 13:54:11 -07:00
state_string.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
state_test.go command/workspace_delete: Allow deleting a workspace with empty husks 2021-10-13 13:54:11 -07:00
state.go core: Use the new checks package for condition tracking 2022-08-26 15:47:29 -07:00
sync.go core: Use the new checks package for condition tracking 2022-08-26 15:47:29 -07:00