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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack list-dependencies --license is wrong for base #2871

Closed
ndmitchell opened this issue Dec 23, 2016 · 1 comment
Closed

stack list-dependencies --license is wrong for base #2871

ndmitchell opened this issue Dec 23, 2016 · 1 comment

Comments

@ndmitchell
Copy link
Contributor

Running stack list-dependencies --license I see:

base <unknown>
ghc-prim <unknown>
integer-gmp <unknown>
template-haskell <unknown>

However, running stack exec -- ghc-pkg describe base correctly states that base is BSD3. I guess it's because these packages are "built in" - if so, hardcoding knowledge for them might not be too bad.

@mgsloan
Copy link
Contributor

mgsloan commented Feb 1, 2017

I've investigated this a bit, and I think it is due to the line after this one. Not sure why wiredInPackages are removed from the source map, but I'm assuming there's a good reason for it.

I've modified the function to optionally include wired in packages, so now stack list-dependencies --license works as expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants