opentofu/internal/states
James Bardin 34a01c92d6 copy Dependencies before sorting in state
Instances of the same AbsResource may share the same Dependencies, which
could point to the same backing array of values. Since address values
are not pointers, and not meant to be shared, we must copy the value
before sorting the slice in-place. Because individual instances of the
same resource may be encoded to state concurrently, failure to copy the
slice first can result in a data race.
2022-04-28 11:44:32 -04:00
..
remote Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
statefile fix typo in struct tag (#30884) 2022-04-22 13:53:32 +01:00
statemgr test: use T.TempDir to create temporary test directory (#30803) 2022-04-08 17:34:16 +01: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 Move states/ to internal/states/ 2021-05-17 14:09:07 -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 command/workspace_delete: Allow deleting a workspace with empty husks 2021-10-13 13:54:11 -07:00
sync.go core: refactoring.ImpliedMoveStatements replaces NodeCountBoundary 2021-09-20 09:06:22 -07:00