{"action":"opened","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/3492","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/3492/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/3492/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/3492/events","html_url":"https://github.com/haskell/cabal/issues/3492","id":159760761,"number":3492,"title":"Dubious value auto-detected for hslogger's buildtests flag","user":{"login":"peti","id":28323,"avatar_url":"https://avatars.githubusercontent.com/u/28323?v=3","gravatar_id":"","url":"https://api.github.com/users/peti","html_url":"https://github.com/peti","followers_url":"https://api.github.com/users/peti/followers","following_url":"https://api.github.com/users/peti/following{/other_user}","gists_url":"https://api.github.com/users/peti/gists{/gist_id}","starred_url":"https://api.github.com/users/peti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peti/subscriptions","organizations_url":"https://api.github.com/users/peti/orgs","repos_url":"https://api.github.com/users/peti/repos","events_url":"https://api.github.com/users/peti/events{/privacy}","received_events_url":"https://api.github.com/users/peti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-11T07:25:43Z","updated_at":"2016-06-11T07:25:43Z","closed_at":null,"body":"I'm not sure what to make of the following behavior in Cabal 1.24. `hslogger` has a flag `buildtests` that marks the test suite \"buildable\" when enabled, but it defaults to \"disabled\". Now, the effective value of the flag is determined automatically by Cabal, but it sticks to the \"disabled\" setting, apparently not realizing that it could build the test suite if \"enabled\" would be chosen. As a result, users cannot run the test suite unless they realize that flag exists and specify it explicitly:\r\n\r\n~~~~\r\n$ cabal get hslogger\r\nDownloading hslogger-1.2.10...\r\nUnpacking to hslogger-1.2.10/\r\n$ cd hslogger-1.2.10/\r\n$ cabal configure -v --enable-tests \r\n[...]\r\nConfiguring hslogger-1.2.10...\r\nFlags chosen: buildtests=False, small_base=True\r\n[...]\r\n$ cabal test \r\nPackage has no buildable test suites.\r\n~~~~\r\n\r\nNow I wonder: are we happy with that result? Or can a legitimate case be made that Cabal should strive to maximize the set of buildable components in a package?"}}
{"actor":{"display_login":"peti"}}