{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/3764","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/3764/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/3764/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/3764/events","html_url":"https://github.com/haskell/cabal/issues/3764","id":174854721,"number":3764,"title":"ghc-pkg fails sometimes after removing dist-newstyle folder","user":{"login":"jaccokrijnen","id":4022046,"avatar_url":"https://avatars.githubusercontent.com/u/4022046?v=3","gravatar_id":"","url":"https://api.github.com/users/jaccokrijnen","html_url":"https://github.com/jaccokrijnen","followers_url":"https://api.github.com/users/jaccokrijnen/followers","following_url":"https://api.github.com/users/jaccokrijnen/following{/other_user}","gists_url":"https://api.github.com/users/jaccokrijnen/gists{/gist_id}","starred_url":"https://api.github.com/users/jaccokrijnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaccokrijnen/subscriptions","organizations_url":"https://api.github.com/users/jaccokrijnen/orgs","repos_url":"https://api.github.com/users/jaccokrijnen/repos","events_url":"https://api.github.com/users/jaccokrijnen/events{/privacy}","received_events_url":"https://api.github.com/users/jaccokrijnen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-02T21:51:59Z","updated_at":"2016-09-02T22:49:43Z","closed_at":null,"body":"After removing `dist-newstyle` I *sometimes* get\r\n\r\n    ghc-pkg: cannot create: /home/jacco/projects/leksah/dist-newstyle/packagedb/ghc-8.0.1 already exists\r\n\r\nIn the verbose output, I see ghc-pkg being called twice as\r\n\r\n    /opt/ghc/8.0.1/bin/ghc-pkg init /home/jacco/projects/leksah/dist-newstyle/packagedb/ghc-8.0.1\r\n\r\nby two packages being installed interleaved.\r\n\r\nI suppose this is a concurrency issue? (I've tried a few times, sometimes this happens, sometimes it builds fine). It only seems to happen if the `dist-newstyle` does not yet exist."},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/244504894","html_url":"https://github.com/haskell/cabal/issues/3764#issuecomment-244504894","issue_url":"https://api.github.com/repos/haskell/cabal/issues/3764","id":244504894,"user":{"login":"ezyang","id":13564,"avatar_url":"https://avatars.githubusercontent.com/u/13564?v=3","gravatar_id":"","url":"https://api.github.com/users/ezyang","html_url":"https://github.com/ezyang","followers_url":"https://api.github.com/users/ezyang/followers","following_url":"https://api.github.com/users/ezyang/following{/other_user}","gists_url":"https://api.github.com/users/ezyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ezyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezyang/subscriptions","organizations_url":"https://api.github.com/users/ezyang/orgs","repos_url":"https://api.github.com/users/ezyang/repos","events_url":"https://api.github.com/users/ezyang/events{/privacy}","received_events_url":"https://api.github.com/users/ezyang/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T22:49:43Z","updated_at":"2016-09-02T22:49:43Z","body":"Related #3741. You're using `-j` right? Seems very much like a concurrency issue."}}
{"actor":{"display_login":"ezyang"}}