{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/1938","labels_url":"https://api.github.com/repos/haskell/cabal/issues/1938/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/1938/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/1938/events","html_url":"https://github.com/haskell/cabal/issues/1938","id":35602058,"number":1938,"title":"cabal install; cabal test switches Cabal/GHC versions","user":{"login":"bergmark","id":100681,"avatar_url":"https://avatars.githubusercontent.com/u/100681?v=3","gravatar_id":"","url":"https://api.github.com/users/bergmark","html_url":"https://github.com/bergmark","followers_url":"https://api.github.com/users/bergmark/followers","following_url":"https://api.github.com/users/bergmark/following{/other_user}","gists_url":"https://api.github.com/users/bergmark/gists{/gist_id}","starred_url":"https://api.github.com/users/bergmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergmark/subscriptions","organizations_url":"https://api.github.com/users/bergmark/orgs","repos_url":"https://api.github.com/users/bergmark/repos","events_url":"https://api.github.com/users/bergmark/events{/privacy}","received_events_url":"https://api.github.com/users/bergmark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","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},"milestone":null,"comments":14,"created_at":"2014-06-12T16:45:40Z","updated_at":"2015-03-24T14:01:31Z","closed_at":null,"body":"Here's a reproduction from travis: https://travis-ci.org/silkapp/json-schema/builds/27422735 (**updated** to a commit with a smaller diff)\r\n\r\nThe error is:\r\n```\r\n$ cabal test\r\ncabal: You need to re-run the 'configure' command. The version of Cabal being\r\nused has changed (was Cabal-1.16.0, now Cabal-1.18.1). Additionally the\r\ncompiler is different (was ghc-7.6, now ghc-7.4) which is probably the cause\r\nof the problem.\r\n```\r\n\r\nThis is the diff between this commit and one that builds correctly:\r\n```\r\n-  - \"travis_retry cabal install --only-dependencies --force-reinstalls --enable-tests\"\r\n-  - \"cabal test --jobs=1\"\r\n+  - \"travis_retry cabal install --force-reinstalls --enable-tests\"\r\n+  - \"cabal test\"\r\n```\r\n\r\nSo `cabal install --only-dependencies` seems to not run into this problem.\r\n\r\nI haven't  been able to reproduce this locally, but @gilligan had the same problem when using `codex`.\r\n\r\n@kosmikus also mentioned that he had seen this before.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/85507254","html_url":"https://github.com/haskell/cabal/issues/1938#issuecomment-85507254","issue_url":"https://api.github.com/repos/haskell/cabal/issues/1938","id":85507254,"user":{"login":"ndmitchell","id":1651197,"avatar_url":"https://avatars.githubusercontent.com/u/1651197?v=3","gravatar_id":"","url":"https://api.github.com/users/ndmitchell","html_url":"https://github.com/ndmitchell","followers_url":"https://api.github.com/users/ndmitchell/followers","following_url":"https://api.github.com/users/ndmitchell/following{/other_user}","gists_url":"https://api.github.com/users/ndmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/ndmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndmitchell/subscriptions","organizations_url":"https://api.github.com/users/ndmitchell/orgs","repos_url":"https://api.github.com/users/ndmitchell/repos","events_url":"https://api.github.com/users/ndmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/ndmitchell/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T14:01:31Z","updated_at":"2015-03-24T14:01:31Z","body":"My primary goal for running commands through cabal-install is correctness. I am on a GHC which ships with a Cabal that can't tolerate spaces in the path of the Haddock binary. A Cabal bug, long since fixed. However, even though I am using a newer cabal-install, I still get a very old bug."}}