pulumi/sdk/go/common/util/deepcopy
Thomas Gummerer 73e073efc6
disallow OutputState to be deepcopied (#16690)
We have this deepcopy utility in our public API, but it does not work
properly on structs with unexported values. Make a note of that, and
also disallow OutputState from being copied, since OutputState has
required unexported fields that we can't deepcopy.

Not sure if we should special case `OutputState` here, which I've done
since that has come up in particular, or maybe even disallow
deepcopy'ing any values that have unexported fields? That would be a
breaking change though, so I've shied away from it for now.

Fixes https://github.com/pulumi/pulumi/issues/16634
2024-07-18 12:56:36 +00:00
..
copy.go disallow OutputState to be deepcopied (#16690) 2024-07-18 12:56:36 +00:00
copy_test.go disallow OutputState to be deepcopied (#16690) 2024-07-18 12:56:36 +00:00