cabal upgrade runs install on the current package instead of upgrading installed packages #253

Closed
bos opened this Issue May 24, 2012 · 2 comments

Comments

Projects
None yet
1 participant
@bos
Contributor

bos commented May 24, 2012

(Imported from Trac #260, reported by @tibbe on 2008-03-13)

I was very suprised when I tried to use cabal to upgrade my installed packages today:

$ cabal upgrade
cabal: No cabal file found.
Please create a package description file <pkgname>.cabal
Looks like Cabal tries to do a build instead so I tried it in a directory with a .cabal file:
$ cd hyena
$ cabal upgrade
Configuring hyena-0.1.0...
Preprocessing library hyena-0.1.0...
Preprocessing executables for hyena-0.1.0...
Building hyena-0.1.0...
ar: creating archive dist/build/libHShyena-0.1.0.a
[5 of 7] Compiling Hyena.Logging    ( Hyena/Logging.hs, dist/build/hello-world/hello-world-tmp/Hyena/Logging.o )
[6 of 7] Compiling Hyena.Server     ( Hyena/Server.hs, dist/build/hello-world/hello-world-tmp/Hyena/Server.o )
[7 of 7] Compiling Main             ( ./Hyena/HelloWorld.hs, dist/build/hello-world/hello-world-tmp/Main.o )
Linking dist/build/hello-world/hello-world ...
Installing: /Users/tibell/.cabal/lib/hyena-0.1.0/ghc-6.8.2
Installing: /Users/tibell/.cabal/bin
Registering hyena-0.1.0...
Reading package info from "dist/installed-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.
Instead of upgrading my installed packages it installed this package!

Here are Cabal and cabal-install versions:

$ cabal --version
cabal-install version 0.4.4
using version 1.3.7 of the Cabal library
I've synced from HEAD today. Here are the latest patches I'm using. Cabal:
Wed Mar 12 21:39:47 CET 2008  Duncan Coutts <duncan@haskell.org>
  * Fix search dirs used for pre-processing executables
and for cabal-install:
Wed Mar 12 14:53:35 CET 2008  Duncan Coutts <duncan@haskell.org>
  * Parse filepaths in the config file the same way as in .cabal files
@bos

This comment has been minimized.

Show comment Hide comment
@bos

bos May 24, 2012

Contributor

(Imported comment by @dcoutts on 2008-03-13)

Hmm, that's a surprise.

Contributor

bos commented May 24, 2012

(Imported comment by @dcoutts on 2008-03-13)

Hmm, that's a surprise.

@bos

This comment has been minimized.

Show comment Hide comment
@bos

bos May 24, 2012

Contributor

(Imported comment by @dcoutts on 2008-03-13)

Should be fixed now.

Sat May 10 19:59:20 BST 2008  Duncan Coutts <duncan@haskell.org>
  * Move the upgrade action into the Install module
  It shares most code anyway.
  Also fixes ticket #260 becuase we use the right entry point now.
Contributor

bos commented May 24, 2012

(Imported comment by @dcoutts on 2008-03-13)

Should be fixed now.

Sat May 10 19:59:20 BST 2008  Duncan Coutts <duncan@haskell.org>
  * Move the upgrade action into the Install module
  It shares most code anyway.
  Also fixes ticket #260 becuase we use the right entry point now.

@bos bos closed this May 24, 2012

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