[Hackage] #251: link to the latest version of a package tar file

#251: link to the latest version of a package tar file ----------------------------------+----------------------------------------- Reporter: ross@soi.city.ac.uk | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: HackageDB website | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------------+----------------------------------------- Dan Corson suggests: it would be good to have links to latest versions of a package file available for download. for example: something like {{{ http://hackage.haskell.org/packages/archive/arrows/latest.tar.gz }}} would be a link to {{{ http://hackage.haskell.org/packages/archive/arrows/0.4/arrows-0.4.tar.gz }}} this would greatly simplify automating installs. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/251 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

Dan Corson suggests: it would be good to have links to latest versions of a package file available for download.
I agree.
for example: something like {{{ http://hackage.haskell.org/packages/archive/arrows/latest.tar.gz }}} would be a link to {{{ http://hackage.haskell.org/packages/archive/arrows/0.4/ arrows-0.4.tar.gz }}} this would greatly simplify automating installs.
I don't agree. Automated installs should not blindly grab the latest version. cabal-install is the right tool for automatic installs.

#251: link to the latest version of a package tar file ----------------------------------+----------------------------------------- Reporter: ross@soi.city.ac.uk | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: HackageDB website | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------------+----------------------------------------- Comment (by igloo): If you do this, if possible, can you do it so that something like {{{ wget http://hackage.haskell.org/packages/archive/arrows/latest.tar.gz }}} will end up creating a file called `arrows-0.4.tar.gz` please? I ''think'' that making `latest.tar.gz` redirect to the real file name will behave like that. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/251#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#251: link to the latest version of a package tar file ----------------------------------+----------------------------------------- Reporter: ross@soi.city.ac.uk | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: HackageDB website | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------------+----------------------------------------- Comment (by ross@soi.city.ac.uk): Replying to [comment:1 igloo]:
If you do this, if possible, can you do it so that something like wget http://hackage.haskell.org/packages/archive/arrows/latest.tar.gz will end up creating a file called `arrows-0.4.tar.gz` please?
I ''think'' that making `latest.tar.gz` redirect to the real file name will behave like that.
That needs an HTTP Redirect response rather than just a symbolic link on the server. It's more work, but possible. I think I should also move all the tarballs for a package into a single directory, to suit tools like Debian's uscan that scan a directory for new versions. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/251#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#251: link to the latest version of a package tar file ----------------------------------+----------------------------------------- Reporter: ross@soi.city.ac.uk | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: HackageDB website | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------------+----------------------------------------- Comment (by duncan): I'd tend to agree with Thomas that having a single link doesn't help automation since you do not know when it changes. The index of course does tell you when new versions are available and it tells you for every package in one download. One doesn't have to use cabal-install for this purpose. For example gentoo has a tool to compare a gentoo package repository with the hackage collection to list packages that are out of date. We wrote it in Haskell but something much simpler using bash + wget + tar + find would be fairly straightforward too I expect. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/251#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#251: link to the latest version of a package tar file ----------------------------------+----------------------------------------- Reporter: ross@… | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: Component: hackageDB website | Version: 1.2.3.0 Severity: normal | Resolution: wontfix Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------------+----------------------------------------- Changes (by ross): * status: new => closed * resolution: => wontfix -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/251#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (2)
-
Hackage
-
Thomas Schilling