Changes to cabal-install

I have a couple of questions about the latest cabal-install release, and I haven't been able to find the release notes (checked GitHub, the Haskell.org wiki, googled, etc.) Here's what I'm running: amy@wombat$ cabal --version cabal-install version 1.18.0.3 using version 1.18.1.3 of the Cabal library Question 1 ---------- Until recently, the command cabal install --enable-tests used to build and run the tests. Now it seems I need to do cabal test which then compiles the tests and runs them. So is the --enable-tests flag doing anything, or is it now obsolete? Question 2 ---------- With my project, I do, in order: 1. cabal sandbox init --sandbox <directory> 2. cabal install --only-dependencies 3. cabal build --ghc-options=-Werror 4. cabal test But when I do step 3, I get a strange warning message: "The sandbox was created after the package was already configured." Huh? Creating the sandbox was the first thing I did! If instead, I replace step 3 with 3. cabal install --ghc-options=-Werror then I don't get the warning message until step 4.

Hi,
On 14 March 2014 17:03, Amy de Buitléir
Question 1 ---------- Until recently, the command
cabal install --enable-tests
used to build and run the tests. Now it seems I need to do
cabal test
which then compiles the tests and runs them. So is the --enable-tests flag doing anything, or is it now obsolete?
Using 'cabal test' is preferable. You don't want to reinstall the package each time you run the test suite.
Question 2 ---------- With my project, I do, in order:
1. cabal sandbox init --sandbox <directory> 2. cabal install --only-dependencies 3. cabal build --ghc-options=-Werror 4. cabal test
But when I do step 3, I get a strange warning message: "The sandbox was created after the package was already configured." Huh? Creating the sandbox was the first thing I did!
Does this still happen with cabal-install HEAD? If it does, please file an issue here: https://github.com/haskell/cabal/issues/new

On Fri, Mar 14, 2014 at 6:22 PM, Mikhail Glushenkov wrote:
Hi,
On 14 March 2014 17:03, Amy de Buitléir wrote:
Question 1 ---------- Until recently, the command
cabal install --enable-tests
used to build and run the tests. Now it seems I need to do
cabal test
which then compiles the tests and runs them. So is the --enable-tests
flag
doing anything, or is it now obsolete?
Using 'cabal test' is preferable. You don't want to reinstall the package each time you run the test suite.
This sounds related: https://github.com/haskell/cabal/issues/1647 Regards, Sean

On 03/14/2014 05:03 PM, Amy de Buitléir wrote:
I have a couple of questions about the latest cabal-install release, and I haven't been able to find the release notes (checked GitHub, the Haskell.org wiki, googled, etc.)
I have opened an issue [1] on github regarding the missing release notes/change log, but got there no response so far. Would be cool if the release notes could be continued. [1] https://github.com/haskell/cabal/issues/1657

Hi,
On 14 March 2014 17:33, Pascal Wittmann
I have opened an issue [1] on github regarding the missing release notes/change log, but got there no response so far. Would be cool if the release notes could be continued.
Release notes for 1.18 are available on my blog [1]. Yes, the official changelog should be updated, I just haven't got around to that yet. [1] http://coldwa.st/e/blog/2013-08-21-Cabal-1-18.html
participants (4)
-
Amy de Buitléir
-
Mikhail Glushenkov
-
Pascal Wittmann
-
Sean Leather