{"action":"closed","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2978","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2978/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2978/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2978/events","html_url":"https://github.com/haskell/cabal/issues/2978","id":123473975,"number":2978,"title":"In a post build hook how to get the right build path in a sandbox","user":{"login":"danfran","id":4922302,"avatar_url":"https://avatars.githubusercontent.com/u/4922302?v=3","gravatar_id":"","url":"https://api.github.com/users/danfran","html_url":"https://github.com/danfran","followers_url":"https://api.github.com/users/danfran/followers","following_url":"https://api.github.com/users/danfran/following{/other_user}","gists_url":"https://api.github.com/users/danfran/gists{/gist_id}","starred_url":"https://api.github.com/users/danfran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfran/subscriptions","organizations_url":"https://api.github.com/users/danfran/orgs","repos_url":"https://api.github.com/users/danfran/repos","events_url":"https://api.github.com/users/danfran/events{/privacy}","received_events_url":"https://api.github.com/users/danfran/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/library","name":"library","color":"AECF38"},{"url":"https://api.github.com/repos/haskell/cabal/labels/sandbox","name":"sandbox","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-22T12:31:13Z","updated_at":"2015-12-23T17:50:26Z","closed_at":"2015-12-23T17:50:26Z","body":"I am creating a simple post-build-hook but the problem comes when I try to build the project that is meant to use this hook, inside a sandbox. \r\n\r\nI am using `Distribution.Simple.LocalBuildInfo` to pass the parameter to the hook, and specifically the function `buildDir` that always returns `dist/build`.\r\n\r\nThe problem is that in a sandbox the project will be built inside a `dist/dist-sandbox-xxxxxxxx/build`.\r\n\r\nAm I using the right function or I should use something else?"}}