{"action":"created","issue":{"url":"https://api.github.com/repos/IreneKnapp/direct-sqlite/issues/60","labels_url":"https://api.github.com/repos/IreneKnapp/direct-sqlite/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/IreneKnapp/direct-sqlite/issues/60/comments","events_url":"https://api.github.com/repos/IreneKnapp/direct-sqlite/issues/60/events","html_url":"https://github.com/IreneKnapp/direct-sqlite/issues/60","id":128473607,"number":60,"title":"Test suite depends on specific directory structure, doesn't always exist","user":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-25T06:43:25Z","updated_at":"2016-01-26T19:36:46Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n1. `stack unpack direct-sqlite`\r\n2. `cd direct-sqlite-*`\r\n3. `stack init`\r\n4. `stack test`\r\n\r\nOutput:\r\n\r\n```\r\nCreating dist/test/direct-sqlite-test-database.db\r\ntest: SQLite3 returned ErrorCan'tOpen while attempting to perform open \"dist/test/direct-sqlite-test-database.db\": unable to open database file\r\n             \r\nCompleted 2 action(s).\r\nTest suite failure for package direct-sqlite-2.3.16\r\n    test:  exited with: ExitFailure 1\r\nLogs printed to console\r\n```\r\n\r\nThis is not a Stack-specific issue, it was originally discovered via the Stackage build process, which calls out to the Setup.hs file directly."},"comment":{"url":"https://api.github.com/repos/IreneKnapp/direct-sqlite/issues/comments/175193472","html_url":"https://github.com/IreneKnapp/direct-sqlite/issues/60#issuecomment-175193472","issue_url":"https://api.github.com/repos/IreneKnapp/direct-sqlite/issues/60","id":175193472,"user":{"login":"nurpax","id":297823,"avatar_url":"https://avatars.githubusercontent.com/u/297823?v=3","gravatar_id":"","url":"https://api.github.com/users/nurpax","html_url":"https://github.com/nurpax","followers_url":"https://api.github.com/users/nurpax/followers","following_url":"https://api.github.com/users/nurpax/following{/other_user}","gists_url":"https://api.github.com/users/nurpax/gists{/gist_id}","starred_url":"https://api.github.com/users/nurpax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nurpax/subscriptions","organizations_url":"https://api.github.com/users/nurpax/orgs","repos_url":"https://api.github.com/users/nurpax/repos","events_url":"https://api.github.com/users/nurpax/events{/privacy}","received_events_url":"https://api.github.com/users/nurpax/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T19:36:45Z","updated_at":"2016-01-26T19:36:45Z","body":"@snoyberg Do you have any recommendation on what to use instead of \"dist/test\"?\r\n\r\nI looked at the module Paths_pkgname but that doesn't specify any sort of a temp directory like the build directory that could be used here.\r\n\r\nAs the test creates the temp db file and deletes it after the test has run (even under exceptions) , I wonder if it'd be ok to just use \"./\" instead of \"./dist/test\"?  Or maybe use System.IO.Temp.withTempDirectory?"}}