Skip to content

gen-bounds does not work in multiprojects #7504

Open
@newhoggy

Description

@newhoggy

Describe the bug
For multiprojects where one package depends on another inside the project, cabal gen-bounds does not work for projects that have local dependencies.

To Reproduce
Steps to reproduce the behavior:

$ tar zxvf gen-bounds.tar.gz
$ cd gen-bounds
$ cabal build all
$ cd package-b
$ cabal gen-bounds
Warning: The package list for 'hackage.haskell.org' is 15 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: package-b-0.1.0.0 (user goal)
[__1] unknown package: package-a (dependency of package-b)
[__1] fail (backjumping, conflict set: package-a, package-b)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: package-b, package-a

Projects that reference git repositories in cabal.project fail similarly.

Expected behavior
cabal should recognise it is in a multiproject and be able to find local dependencies.

System information

  • MacOS (and possibly others)
  • cabal-3.4, ghc-8.10.4

Additional context
Attached example code.
gen-bounds.tar.gz

Metadata

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