[Hackage] #423: add option to fetch a single package without dependencies

#423: add option to fetch a single package without dependencies ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.3 Platform: | ----------------------------+----------------------------------------------- Right now, {{{cabal fetch}}} fetches all missing dependencies of a package along with its source. In some cases, in particular when studying code, those dependencies are not useful. It would be nice to have an option, say {{{--no-deps}}} to fetch just the specified packages. (This is related to {{{cabal unpack}}} -- see #390.) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/423 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#423: add option to fetch a single package without dependencies ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: minor | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): I think we do not need this feature. I think there are basically two use cases: * fetch a package so that we can install it later when offline * fetch a package so that we can study it, change it, etc The first case requires dependencies. The second one does not. The first use case is handled by `cabal fetch`. The second one should be handled by `cabal unpack` (see #390) or `cabal fetch -o ./` (see #453). That said, perhaps one way to organise this is with two modes, one that gets deps and one that does not. Then we have the default for the first use case use deps and for the second not do. But reversing the default could be done with a command line arg. I expect it's not necessary though. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/423#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#423: add option to fetch a single package without dependencies ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: minor | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * difficulty: normal => easy (<4 hours) Comment: Ticket #612 is a duplicate of this. Would not be too hard for someone to add a helpful message (see #612), and to add the -o parameter. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/423#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage