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

Allow stack init when local packages also figure in the deps of deps #1965

Closed
harendra-kumar opened this issue Mar 29, 2016 · 0 comments
Closed

Comments

@harendra-kumar
Copy link
Collaborator

This problem was discovered from the question asked on haskell-stack regarding stack init of https://github.com/haskell-servant/servant-snap. Which is a bit complicated due to a lot of dependencies cloned in the same project and local packages figuring in the dependencies of dependencies as well.

We use --only-dependencies flag for cabal solver. When some local packages also figure in the dependencies of dependencies of other packages in the project then cabal refuses to proceed with the following message:

>>>> Cabal errors begin                                                                                                                                                           
cabal: Cannot select only the dependencies (as requested by the                                                                                                                   
'--only-dependencies' flag), the packages are required by a dependency of one                                                                                                     
of the other targets.                                                                                                                                                             
<<<< Cabal errors end 

I removed the --only-dependencies flag from the cabal invocation to allow this case. I could not think of any potential issues due to this but I might be missing something. Will send a pull request.

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

No branches or pull requests

2 participants