-
Notifications
You must be signed in to change notification settings - Fork 133
Print install command to fix missing transitive dependencies #770
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
Conversation
@@ -242,3 +242,5 @@ sourceImportsTransitiveDependency transitive = makeMessage $ | |||
[ "Some of your project files import modules from packages that are not in the direct dependencies of your project." | |||
, "To fix this error add the following packages to the list of dependencies in your config:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment related to the unusedDependency
block above (must expand due to this github feature gap isaacs/github#284):
It would be nice if we could also offer the same convenience for unused dependencies here with a spago uninstall
or spago remove
line. I recall uninstall
/remove
being proposed before, but I can't find the issue for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC it was a thread on slack. I don't think providing a command here is as urgent as with the other error, as this is just a warning and won't fail your build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great now, thank you @milesfrain!
Description of the change
Prints a
spago install
command that will likely install missing transitive dependencies.See #769 for context.
Checklist:
README