[Hackage] #453: "cabal fetch" should take output arguments

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.10.1 Platform: | ---------------------------------+------------------------------------------ It would be nice if "cabal fetch" could output the fetched tarball to a location specified on the command line, i.e.: cabal fetch bytestring -o foo.tgz This probably depends on #423. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): Should this also save a copy in the normal local package cache or really just make the one copy at the target location? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by gregorycollins): Just the one copy, methinks. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): If it's already cached of course it's just a cp. In which case it may be simpler just to download it to the cache and then cp. Fewer different code paths. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by gregorycollins): Good point -- I don't see any reason why that wouldn't be acceptable. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): Also, if the output path is given as a directory then the file should be put into that directory with the obvious name, eg `cabal fetch foo -o ./` would create `foo-1.0.tar.gz` in the current dir, or whatever version of the package it was. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * difficulty: normal => easy (<4 hours) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:6 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: normal | Milestone: cabal-install-0.8 Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * milestone: => cabal-install-0.8 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:7 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: high | Milestone: cabal-install-0.8 Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Changes (by gregorycollins): * priority: normal => high Comment: Setting priority on this to "high" because I may need it for platform. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:8 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#453: "cabal fetch" should take output arguments ---------------------------------+------------------------------------------ Reporter: gregorycollins | Owner: Type: enhancement | Status: new Priority: high | Milestone: cabal-install-0.8 Component: cabal-install tool | Version: HEAD Severity: normal | Resolution: Keywords: | Difficulty: very easy (<1 hour) Ghcversion: 6.10.1 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * difficulty: easy (<4 hours) => very easy (<1 hour) Comment: And I should note that it's actually really very easy. Adding an extra command line arg is easy as is adding the plumbing to get the info to the right place. The only tricky thing is that for `fetch -o` we do not care about dependencies so we should use the logic for `unpack` rather than the normal `fetch`. Bonus points for refactoring to unify the two methods and using a parameter to specify if we want to download deps into the cache too. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/453#comment:9 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage