Skip to content

How to fix transitive dependency errors #769

@milesfrain

Description

@milesfrain

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions