cabal sandbox add-source directory-name not working

Created on 7 Sep 2016  路  4Comments  路  Source: haskell/cabal

The command cabal sandbox add-source ..\folder is not working. When I issue the command cabal sandbox hc-pkg list it shows (no packages) for the local sandbox. If I issue the command: cabal install --only-dependencies it shows the following message:

All the requested packages are already installed:
Use --reinstall if you want to reinstall anyway.

I am using cabal version 1.24.0.0 on windows 7.

sandbox bug

Most helpful comment

Just a friendly note: try out http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html instead of sandboxes! You'll be pleasantly surprised.

All 4 comments

Does your .cabal file include a dependency on the package in ..\folder?

Just a friendly note: try out http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html instead of sandboxes! You'll be pleasantly surprised.

Well I tried it again this morning and it worked. I haven't changed anything so I am at a loss to what was going on. Anyway all good now.
@ezyang Thanks for that. I will read it as soon as I get time.

OK, I'll close this for now. Reopen if you see it again!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tfausak picture tfausak  路  4Comments

phadej picture phadej  路  4Comments

tsoernes picture tsoernes  路  3Comments

quasicomputational picture quasicomputational  路  4Comments

chrissound picture chrissound  路  4Comments