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

Multiple libraries breaks --only-dependencies #7287

Closed
ekmett opened this issue Feb 20, 2021 · 1 comment
Closed

Multiple libraries breaks --only-dependencies #7287

ekmett opened this issue Feb 20, 2021 · 1 comment

Comments

@ekmett
Copy link
Member

ekmett commented Feb 20, 2021

Run $CABAL v2-build $ARG_COMPILER --disable-tests --disable-benchmarks --dependencies-only -j2 all
Resolving dependencies...
cabal-3.4.0.0-rc4: Cannot select only the dependencies (as requested by the '--only-dependencies' flag), the package unlifted-0 is required by a dependency of one of the other targets.

Describe the bug
I'm working on a package with multiple sub-libraries. I went to use haskell-ci. haskell-ci invokes the old standby cabal build --dependencies-only, which fails because it thinks the package depends on itself (which it does) and that this should stop it from installing other packages (which it shouldn't)

To Reproduce

grab https://github.com/ekmett/unlifted commit 2801d0892cc073304e57174b0b5c
cabal build --only-dependencies

If I build with cabal build --only-dependencies unlifted it succeeds.

Expected behavior
I'd expect this to succeed as usual.

System information

  • OSX
  • cabal 3.4.0.0-rc7, ghc-9.0.1
@phadej
Copy link
Collaborator

phadej commented Feb 20, 2021

Duplicate of #6106

@phadej phadej marked this as a duplicate of #6106 Feb 20, 2021
@phadej phadej closed this as completed Feb 20, 2021
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