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 fetch without recursive package download #605

Closed
bos opened this issue May 24, 2012 · 1 comment
Closed

cabal fetch without recursive package download #605

bos opened this issue May 24, 2012 · 1 comment

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #612, reported by guest on 2009-11-27)

Sometimes I want to install a package from Hackage and the dependencies cannot be satisfied. Thus 'cabal install' refuses to work. Now I like to download the package in order to inspect the Cabal file. Sometimes it contains switches that may reduce dependencies, or I can add such switches, say because the offending dependencies only apply to the test executables or examples. However, also 'cabal fetch' refuses to work, because the dependencies cannot be resolved. Thus I like to say something like 'cabal fetch --disable-recursive-download package'.

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @dcoutts on 2009-11-27)

Of course if you're using it just to inspect the contents of the package then you can use cabal unpack blah.

The fetch command is mainly so you can install packages when offline, so in that case you do really need the dependencies or you'll end up screaming and shouting when you get on the train and find that not all the deps were downloaded.

Of course we could possibly print a message in the case that fetch cannot resolve deps to suggest unpack.

It would also be possible of course to have a no-deps flag, see the existing ticket on this issue #423.

@bos bos closed this as completed May 24, 2012
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

1 participant