Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cabal upgrade runs install on the current package instead of upgrading installed packages #253
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>.cabalLooks 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 libraryI've synced from HEAD today. Here are the latest patches I'm using. Cabal:
Wed Mar 12 21:39:47 CET 2008 Duncan Coutts <firstname.lastname@example.org> * Fix search dirs used for pre-processing executablesand for cabal-install:
Wed Mar 12 14:53:35 CET 2008 Duncan Coutts <email@example.com> * Parse filepaths in the config file the same way as in .cabal files