terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
16.59k stars 417 forks source link

d2ir: fix importing scopes #2112

Closed alixander closed 5 days ago

alixander commented 1 week ago

Turns out this fix was bad: https://github.com/terrastruct/d2/pull/2093/commits/4e93f70db384fc34e62de708ae42acda59d79285

The real fix is just setting ScopeObj more consistently

closes https://github.com/terrastruct/d2/issues/2110