mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
842d66183b
Because CBD now runs after a RootTransformer, it's now operating on a graph that _may_ have had a graphNodeRoot added to it (a noop node whose only purpose is to be a root). CBD includes a step that tells the destroy node to depend on any parents of the create node. When one of those parents was "root", this was causing the destroy node to depend on "root", making it cease to be an actual root node. Because graphNodeRoot is a singleton, the follow-up RootTransformer was not sufficient to slap another root on top - it wasn't being seen as a fresh node, so edges were just accumulating, and we ended up in a state with "no roots". refs #1903 (not sure if this will fix all the "no root found" cases, or just the one I bumped into) |
||
---|---|---|
.. | ||
main.tf |