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

cabal new-configure does not work #429

Closed
jwiegley opened this issue Jan 24, 2019 · 2 comments · Fixed by #463
Closed

cabal new-configure does not work #429

jwiegley opened this issue Jan 24, 2019 · 2 comments · Fixed by #463

Comments

@jwiegley
Copy link
Member

I haven't tracked this down, but cabal new-configure --enable-tests fails, while cabal configure --enable-tests works just fine. It would be nice to move to the new-build logic.

@emilypi
Copy link
Contributor

emilypi commented Mar 9, 2019

These work for me. The problem was previous global dependencies installed, that removing ~/.ghc fixed.

@jwiegley
Copy link
Member Author

This is what I'm seeing here:

Vulcan ~/src/hnix $ rm -fr ~/.cabal ~/.ghc .ghc.*(N) cabal.project.*(N) dist*(N) ; cabal new-configure --enable-tests
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: hnix-0.5.2 (user goal)
[__1] rejecting: hnix:!test (constraint from config file, command line flag,
or user target requires opposite flag selection)
[__1] trying: hnix:*test
[__2] next goal: hnix:hspec-discover:exe.hspec-discover (dependency of hnix
*test)
[__2] rejecting: hnix:hspec-discover:exe.hspec-discover-2.6.1/installed-1hN...
(does not contain executable 'hspec-discover', which is required by hnix
*test)
[__2] fail (backjumping, conflict set: hnix,
hnix:hspec-discover:exe.hspec-discover, hnix:test)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: hnix, hnix:test,
hnix:hspec-discover:exe.hspec-discover

I wonder now if it's because of my using direnv.

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

Successfully merging a pull request may close this issue.

2 participants