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

How to fix transitive dependency errors #769

Closed
milesfrain opened this issue Apr 8, 2021 · 1 comment
Closed

How to fix transitive dependency errors #769

milesfrain opened this issue Apr 8, 2021 · 1 comment

Comments

@milesfrain
Copy link
Contributor

milesfrain commented Apr 8, 2021

PSA for folks troubleshooting error messages:

With the release of 0.20.0, which incorporates #730, you may encounter errors like this in pre-existing projects:

[error] 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:
- integers
- maybe
- partial
- prelude

The error message suggests adding these to spago.dhall. A simple way to accomplish this is to run the install command with those missing packages:

spago install integers maybe partial prelude

It might be nice to autogenerate that spago install ... line in the error message for convenience.

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