Skip to content

Conversation

milesfrain
Copy link
Contributor

@milesfrain milesfrain commented Apr 8, 2021

Description of the change

Prints a spago install command that will likely install missing transitive dependencies.
See #769 for context.

Checklist:

  • Added the change to the "Unreleased" section of the changelog
  • NA - Added some example of the new feature to the README
  • Added a test for the contribution (if applicable)
    • Not extensive

@@ -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:"
Copy link
Contributor Author

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.

Copy link
Member

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

Copy link
Member

@f-f f-f left a 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!

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

Successfully merging this pull request may close these issues.

3 participants