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

Doesn't work for multi-package setup with inter-dependencies #361

Closed
UnkindPartition opened this issue Feb 2, 2020 · 1 comment
Closed

Comments

@UnkindPartition
Copy link

First of all, thanks for making this. I'm migrating from the "complex" stack setup that I've been using for many years, and I find the ability to auto-generate .travis.yml very convenient, especially for smaller projects.

However, when setting this up for tasty, I ran into this issue after generating the config with haskell-ci cabal.project --output .travis.yml (using haskell-ci 0ebd703):

$ ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} --dep -j2 all

cabal: Cannot select only the dependencies (as requested by the '--only-dependencies' flag), the package tasty-1.2.3 is required by a dependency of one of the other targets.

Travis log

FWIW, I've fixed this for myself simply by removing the --dep steps, as they don't seem necessary.

@phadej
Copy link
Collaborator

phadej commented Feb 2, 2020

% haskell-ci --help|grep dep
                    --install-dependencies | --no-install-dependencies | 
  --no-install-dependencies
                           Skip separate dependency installation step

EDIT: The upstream issue is haskell/cabal#6106

@phadej phadej closed this as completed Feb 2, 2020
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