You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
The text was updated successfully, but these errors were encountered: