-
Notifications
You must be signed in to change notification settings - Fork 846
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stack dot should handle properly GHC boot packages #4324
Comments
I thought This isn't totally obvious to me — why is it valuable to display boot libraries? We may want to add an option |
Omitting some dependencies results in an incomplete dependency graph, I think Stack should be explicit about this. And actually we could add this information e.g. by using |
Hey guys, I've been looking at this issue and I think I was able to get those dependencies to load up in the dot graph. So here's the offending code thats causing certain dependencies to not show.
That last bit of code at the end is the problem: I don't know if this is intended behavior or not. If not, then I guess this is a glitch and we can just modify the code to include the dependencies for these packages. If it is intended, then we can make an option as @dbaynard said above if that seems ok? |
@vanceism7 the current version of that code is more or less my refactoring of the previous version to use new source maps. As far as I understand it you're correct, probably you've noticed that for |
Oh gotcha ok cool, I'll work on the PR for this then Edit |
@snoyberg I think something wasn't merged correctly here - compare https://svgur.com/s/Bq3 vs https://svgur.com/s/Bqb |
@qrilka what project did you generate those graphs from? |
@snoyberg I just run
then it's just |
It's unclear how could that happen but I can't reproduce those incomplete graphs anymore. |
General summary/comments (optional)
It looks like currently
stack dot
doesn't show dependencies of GHC boot libraries even when such a library comes from a Stackage LTS snapshot. Either the code should be improved by including those dependencies or it should be documented thatstack
doesn't track dependencies of GHC boot packages.Steps to reproduce
In the root of the stack repository run
stack dot --external | grep '"process"'
Expected
Dependencies of the
process
package will get shown (e.g.directory
orfilepath
) besides the packages which depend onprocess
.Actual
Current output (both for versions 1.7.1 and prerelese 1.9.0.1):
Stack version
Method of installation
gentoo-haskell
, prerelease version downloaded from the Github release pageThe text was updated successfully, but these errors were encountered: