Misguided newer cabal-install version notice #1055

Closed
tuncer opened this Issue Oct 4, 2012 · 2 comments

Comments

Projects
None yet
3 participants
@tuncer
Collaborator

tuncer commented Oct 4, 2012

If you build Cabal and cabal-install from master and run cabal update,
cabal-install prints the following notice:

Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install

Steps to reproduce:

# build Cabal
$ cd cabal/Cabal
$ ghc --make Setup && ./Setup configure --user
$ ./Setup build && ./Setup install
# either bootstrap cabal
$ cd ../cabal-install
$ sh bootstrap.sh
$ ~/.cabal/bin/cabal update
# or build cabal with installed cabal
$ cabal configure && cabal build
$ dist/build/cabal/cabal update

The values leading to the notice in checkForSelfUpgrade are as follows:

currentVersion: "0.17.0"
preferredVersionRange: "-any"
laterPreferredVersions: ["1.16.0"]

Is it possible that cabal-install's version is erroneously compared with Cabal's?

@kosmikus

This comment has been minimized.

Show comment Hide comment
@kosmikus

kosmikus Oct 5, 2012

Contributor

No, the new cabal-install release has version number 1.16.0. The master branch should also get a new version.

Contributor

kosmikus commented Oct 5, 2012

No, the new cabal-install release has version number 1.16.0. The master branch should also get a new version.

@tuncer

This comment has been minimized.

Show comment Hide comment
@tuncer

tuncer Oct 5, 2012

Collaborator

Isn't that already the case?

$ cabal --version
cabal-install version 0.17.0
using version 1.17.0 of the Cabal library
Collaborator

tuncer commented Oct 5, 2012

Isn't that already the case?

$ cabal --version
cabal-install version 0.17.0
using version 1.17.0 of the Cabal library

@tibbe tibbe closed this in 76d3d8f Oct 5, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment