Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to show actual dependencies between packages #6

Open
doodzik opened this issue Nov 4, 2020 · 1 comment
Open

Add feature to show actual dependencies between packages #6

doodzik opened this issue Nov 4, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@doodzik
Copy link

doodzik commented Nov 4, 2020

This is a really great gem, and it helps see the dependencies laid out like that. 馃檪

I was playing around with Graphwerk, and I noticed that it generates a graph on the dependencies' ideal state rather than the actual dependencies. It seems like it doesn't consider deprecations or packages that don't enforce privacy/dependencies. Having that information could help to notice problems and make it easier to create an overview of what is happening in the code. Is there a way to create a graph with the actual dependencies between packages?

@samuelgiles
Copy link
Owner

samuelgiles commented Nov 6, 2020

@doodzik glad to hear you find it useful 馃槂

Yes so right now it's using the data Packwerk::PackageSet makes available which comes straight out of the package yml files so as you say its displaying that "ideal" state presuming dependencies are being enforced.

I reckon it'd be pretty easy to use Packwerk::DeprecatedReferences to show deprecated references in the diagram too 馃憤

As for producing a graph based on actual dependencies, I mean I guess all the information is present via the constant discovery & reference lister logic so it would be possible to map the actual dependencies rather than trust the yml files. Perhaps even a mode where it could even go as far as showing the individual reference points though the graph would be pretty crazy! If I get some time I might dig into this as I'm interested in taking a better look at how the reference checking stuff all works.

@samuelgiles samuelgiles added the enhancement New feature or request label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants