{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/814","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/814/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/814/events","html_url":"https://github.com/haskell/cabal/issues/814","id":4726947,"number":814,"title":"cabal install --enable-tests does not install test dependencies.","user":{"login":"bos","id":23374,"avatar_url":"https://avatars.githubusercontent.com/u/23374?v=3","gravatar_id":"","url":"https://api.github.com/users/bos","html_url":"https://github.com/bos","followers_url":"https://api.github.com/users/bos/followers","following_url":"https://api.github.com/users/bos/following{/other_user}","gists_url":"https://api.github.com/users/bos/gists{/gist_id}","starred_url":"https://api.github.com/users/bos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bos/subscriptions","organizations_url":"https://api.github.com/users/bos/orgs","repos_url":"https://api.github.com/users/bos/repos","events_url":"https://api.github.com/users/bos/events{/privacy}","received_events_url":"https://api.github.com/users/bos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/haskell/cabal/labels/cabal-install","name":"cabal-install","color":"68CFC4"}],"state":"closed","locked":false,"assignee":{"login":"ttuegel","id":563054,"avatar_url":"https://avatars.githubusercontent.com/u/563054?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuegel","html_url":"https://github.com/ttuegel","followers_url":"https://api.github.com/users/ttuegel/followers","following_url":"https://api.github.com/users/ttuegel/following{/other_user}","gists_url":"https://api.github.com/users/ttuegel/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuegel/subscriptions","organizations_url":"https://api.github.com/users/ttuegel/orgs","repos_url":"https://api.github.com/users/ttuegel/repos","events_url":"https://api.github.com/users/ttuegel/events{/privacy}","received_events_url":"https://api.github.com/users/ttuegel/received_events","type":"User","site_admin":false},"assignees":[{"login":"ttuegel","id":563054,"avatar_url":"https://avatars.githubusercontent.com/u/563054?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuegel","html_url":"https://github.com/ttuegel","followers_url":"https://api.github.com/users/ttuegel/followers","following_url":"https://api.github.com/users/ttuegel/following{/other_user}","gists_url":"https://api.github.com/users/ttuegel/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuegel/subscriptions","organizations_url":"https://api.github.com/users/ttuegel/orgs","repos_url":"https://api.github.com/users/ttuegel/repos","events_url":"https://api.github.com/users/ttuegel/events{/privacy}","received_events_url":"https://api.github.com/users/ttuegel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2012-05-24T05:50:49Z","updated_at":"2016-06-30T19:12:06Z","closed_at":"2012-05-24T05:50:54Z","body":"(Imported from [Trac #824](http://hackage.haskell.org/trac/hackage/ticket/824), reported by @creswick on 2011-03-28)\n\nCabal install normally installs all the necessary project dependencies; however, this is not happening for the dependencies specified in the Test-suite stanzas.  Here's an example cabal file:\n\n<pre class=\"wiki\">Name:           foo\nVersion:        1.0\nLicense:        BSD3\nCabal-Version:  &gt;= 1.9.2\nBuild-Type:     Simple\nexecutable foo\n    main-is: foo.hs\n    build-depends: base\n                 , xml == 1.3.7\nTest-Suite test-foo\n    type:       exitcode-stdio-1.0\n    main-is:    test-foo.hs\n    build-depends: base\n                  , QuickCheck &gt;= 2.0\n</pre><tt>cabal install</tt> will install xml if necessary, then build foo, but <tt>cabal install --enable-tests</tt> complains that `QuickCheck?` is not available:\n\n<pre class=\"wiki\"> $ cabal install --enable-tests\nResolving dependencies...\nConfiguring foo-1.0...\ncabal: At least the following dependencies are missing:\nQuickCheck &gt;=2.0\ncabal: Error: some packages failed to install:\nfoo-1.0 failed during the configure step. The exception was:\nExitFailure 1\n</pre>This causes some problems when building tests with <tt>cabal-dev</tt>:\n\n[https://github.com/creswick/cabal-dev/issues#issue/10](https://github.com/creswick/cabal-dev/issues#issue/10)\n\n(Using cabal-install 0.10.2 built with Cabal 1.10.1.0)"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/229759215","html_url":"https://github.com/haskell/cabal/issues/814#issuecomment-229759215","issue_url":"https://api.github.com/repos/haskell/cabal/issues/814","id":229759215,"user":{"login":"JacquesCarette","id":1855141,"avatar_url":"https://avatars.githubusercontent.com/u/1855141?v=3","gravatar_id":"","url":"https://api.github.com/users/JacquesCarette","html_url":"https://github.com/JacquesCarette","followers_url":"https://api.github.com/users/JacquesCarette/followers","following_url":"https://api.github.com/users/JacquesCarette/following{/other_user}","gists_url":"https://api.github.com/users/JacquesCarette/gists{/gist_id}","starred_url":"https://api.github.com/users/JacquesCarette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JacquesCarette/subscriptions","organizations_url":"https://api.github.com/users/JacquesCarette/orgs","repos_url":"https://api.github.com/users/JacquesCarette/repos","events_url":"https://api.github.com/users/JacquesCarette/events{/privacy}","received_events_url":"https://api.github.com/users/JacquesCarette/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T19:12:06Z","updated_at":"2016-06-30T19:12:06Z","body":"@ttuegel In this case, it was quickcheck.  Unsurprisingly, it is only used by our test suite, and not the main executable of Hakaru (https://github.com/hakaru-dev/hakaru).  I believe that Hakaru is still in the state that if you do\r\ncabal configure --enable-tests\r\ncabal install --dependencies-only\r\nand you don't have the right quickcheck installed, it will fail."}}
{"actor":{"display_login":"JacquesCarette"}}