Skip to content

Solver tries to solve for unneeded internal libs: #5413

Open
@phadej

Description

cabal-version: 2.2
name: bug
version: 0

library
  build-depends:
    , cabal-plan ^>=0.3.0.0
    , base-orphans ^>= 0.8

cabal-plan has an internal lib, which depends on base-orphans ^>= 0.7, but main-library doesn't depend on that component. There's also an automatic flag, which could turn out the executable component (which depends on the internal lib).

EDIT even explicitly saying cabal new-build --constraint='cabal-plan -exe' doesn't help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions