Open apjanke opened 5 years ago
Started in https://github.com/apjanke/octave-packajoozle/commit/8c2dda5dfe3bfb0d823da1bd80cf2d0fb833c392
You can use it to show the dependencies between current Forge packages.
dd = packajoozle.internal.DependencyDiagrammer;
gv = dd.diagram_forge_deps;
gv.imshow;
Hi Andrew, Is there any way to explot the work done at https://gitlab.com/kakila/dependencydag to accomplish this task?
Eh, you could copy the work over, but really, it's not that big a deal: once you have a data structure representing the dependency resolution, which is a graph, it's just not that much work at all to transform it into a GraphViz "dot" structure. (Which is just an enumeration of the edges in the graph, when you come down to it.)
The real problem here is that my current code for the dependency resolver doesn't really take dependency versions into accounts, and doesn't properly do backtracking. Gotta fix that.
Once you have a proper dependency resolver structure, the code to transform that into a GraphViz DOT definition is really simple.
The graphivuz is already solved in my code. the question was more directed towards joining efforts.
Gotcha. I don't think I want to bother. Put another way: in my opinion, the work involved here is all pretty Easy. So the code used to do it doesn't embody any difficult work that's worth re-using, but rather, mostly the stylistic choices of the author. And personally, I like my stylistic choices. ;) Thanks though!
Make Graphviz diagrams of the dependency graphs for various situations.