Open greeflas opened 5 months ago
This is a valid feature request. I believe the DOT representation wasn't rewritten when we rewrote Dig's internal graph representation when we worked on the Scope feature.
@sywhang should we close this issue or you want to add here info about future improvement that was discussed in pull request?
I'll leave this open for now since we need some more visual improvements. Thanks
Describe the bug Child scope of container is not visualized on dot graph.
To Reproduce
c := dig.New()
c.Provide(NewFirstComponent)
child := c.Scope("test_scope")
child.Provide(NewSecondComponent)
dig.Visualize(c, os.Stdout)
Expected behavior I expect to see child scope along with
NewSecondComponent
but I only seeNewFirstComponent
.Additional context Dig version:
v1.17.1
Go Playground: https://go.dev/play/p/lhYAIUlfsPr DOT:Graph image:![graphviz (1)](https://github.com/uber-go/dig/assets/17636915/07f2d20d-4cd8-46de-8b3f-d29852fc4551)