{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2484","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2484/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2484/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2484/events","html_url":"https://github.com/haskell/cabal/issues/2484","id":63217170,"number":2484,"title":"Should be possible to define builddir in `cabal.config`","user":{"login":"edsko","id":935288,"avatar_url":"https://avatars.githubusercontent.com/u/935288?v=3","gravatar_id":"","url":"https://api.github.com/users/edsko","html_url":"https://github.com/edsko","followers_url":"https://api.github.com/users/edsko/followers","following_url":"https://api.github.com/users/edsko/following{/other_user}","gists_url":"https://api.github.com/users/edsko/gists{/gist_id}","starred_url":"https://api.github.com/users/edsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsko/subscriptions","organizations_url":"https://api.github.com/users/edsko/orgs","repos_url":"https://api.github.com/users/edsko/repos","events_url":"https://api.github.com/users/edsko/events{/privacy}","received_events_url":"https://api.github.com/users/edsko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/cabal-install","name":"cabal-install","color":"68CFC4"},{"url":"https://api.github.com/repos/haskell/cabal/labels/easy","name":"easy","color":"009800"},{"url":"https://api.github.com/repos/haskell/cabal/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/haskell/cabal/milestones/29","html_url":"https://github.com/haskell/cabal/milestones/cabal-install-1.24","labels_url":"https://api.github.com/repos/haskell/cabal/milestones/29/labels","id":929438,"number":29,"title":"cabal-install-1.24","description":"","creator":{"login":"tibbe","id":17277,"avatar_url":"https://avatars.githubusercontent.com/u/17277?v=3","gravatar_id":"","url":"https://api.github.com/users/tibbe","html_url":"https://github.com/tibbe","followers_url":"https://api.github.com/users/tibbe/followers","following_url":"https://api.github.com/users/tibbe/following{/other_user}","gists_url":"https://api.github.com/users/tibbe/gists{/gist_id}","starred_url":"https://api.github.com/users/tibbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibbe/subscriptions","organizations_url":"https://api.github.com/users/tibbe/orgs","repos_url":"https://api.github.com/users/tibbe/repos","events_url":"https://api.github.com/users/tibbe/events{/privacy}","received_events_url":"https://api.github.com/users/tibbe/received_events","type":"User","site_admin":false},"open_issues":147,"closed_issues":7,"state":"open","created_at":"2015-01-09T23:38:12Z","updated_at":"2015-05-15T19:12:34Z","due_on":"2015-08-30T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-03-20T12:15:17Z","updated_at":"2015-05-15T21:48:56Z","closed_at":null,"body":"Currently the only way we can pass `builddir` is through a command line option. Since I use different build directories for dfiferent versions of GHC, it would be very convenient if I could specify \r\n\r\n```\r\nbuilddir: <something>\r\n```\r\n\r\nin my project-local `cabal.config` file, and then specify a different `cabal.config` file using the `CABAL_CONFIG` environment variable (`cabal.config-7.8.4`, say). Currently specifying `builddir` in config file is explicit disallowed (`configFieldDescriptions` in `Config.hs`); I tried removing this and that stopped cabal from complaining about an unrecognized `builddir` option, but it still didn't take it into account either. I don't know cabal's command line/config option system well enough to fix this. "},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/102532975","html_url":"https://github.com/haskell/cabal/issues/2484#issuecomment-102532975","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2484","id":102532975,"user":{"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},"created_at":"2015-05-15T21:48:56Z","updated_at":"2015-05-15T21:48:56Z","body":"Actually, it's impossible to implement my request because doing the `PathTemplate` substitution requires having the `LocalBuildInfo` available, but it won't be available until the `builddir` is known."}}