dag generates Graphviz digraphs for Melange package dependencies.

To generate the full dag.svg of all build-time dependencies, run this inside the root of the Wolfi OS repo:

go run ./

full example dependency graph


dag can also generate subgraphs for only some packages.

To generate a graph for only one package:

go run ./ brotli

To generate a graph for only some packages:

go run ./ brotli git-lfs attr

partial dependency graph


dag writes a file called dag.svg by default.

To change this, pass -f before any positional args.

go run ./ -f brotli.svg brotli

It will only generate SVG.


View Github