Change wording of "Some of your project files import modules from packages that are not in the direct dependencies"
I tried to see which modules actually use on one of the dependencies in my spago.dhall. I removed it and tried to compile, hoping I'll get compile errors.
But instead I've got this message with recommendation to install the package again.
[error] Some of your project files import modules from packages that are not in the direct dependencies of your project.
I think it would be useful to support my use-case by including a list of modules that import modules from missing package in the error message.
I believe this is already supported. Which version of spago are you using?
@JordanMartinez at least in master spago lists package dependencies, not my project modules.
The new Spago written in PureScript will list the modules that you are importing from the offending packages:
This should be enough to be able to search for these and see where they are imported.
Well, it turns out that adding provenance makes the code easier to write and it's more informative:
Leaving this open as a reminder that we should document the --pedantic-packages flag better.
This is now fully shipped, closing