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

Additional Duplicate element in the diagram #2110

Closed rutvora closed 5 days ago

rutvora commented 1 week ago

Note: This is an issue with the current master branch and not with the v0.6.6 release

main.d2

...@second

second.d2

second: {
  elem: {
    ...@third
  }
}

third.d2

third: {
  elem
}
master v0.6.6
image image

The extra third element in master is what I'm referring to.

Btw, I built the master branch by running the following commands (let me know if I did something wrong)

./make.sh
go build .

I then used the executable generated by the go build . to generate the images

alixander commented 1 week ago

@rutvora Very much appreciate this. Surprising lack of test case, we're lucky you caught it before the new release was cut 🙏