mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-11 16:15:33 -06:00
Fixes an interpolation race that was occurring when a tainted destroy node and a primary destroy node both tried to interpolate a computed count in their config. Since they were sharing a pointer to the _same_ config, depending on how the race played out one of them could catch the config uninterpolated and would then throw a syntax error. The `Copy()` tree implemented for this fix can probably be used elsewhere - basically we should copy the config whenever we drop nodes into the graph - but for now I'm just applying it to the place that fixes this bug. Fixes #4982 - Includes a test covering that race condition. |
||
---|---|---|
.. | ||
module | ||
test-fixtures | ||
append_test.go | ||
append.go | ||
config_string.go | ||
config_test.go | ||
config_tree.go | ||
config.go | ||
import_tree.go | ||
interpolate_funcs_test.go | ||
interpolate_funcs.go | ||
interpolate_test.go | ||
interpolate_walk_test.go | ||
interpolate_walk.go | ||
interpolate.go | ||
lang.go | ||
loader_hcl_test.go | ||
loader_hcl.go | ||
loader_test.go | ||
loader.go | ||
merge_test.go | ||
merge.go | ||
raw_config_test.go | ||
raw_config.go | ||
string_list_test.go | ||
string_list.go |