{"action":"created","issue":{"url":"https://api.github.com/repos/ember-fastboot/ember-cli-fastboot/issues/246","repository_url":"https://api.github.com/repos/ember-fastboot/ember-cli-fastboot","labels_url":"https://api.github.com/repos/ember-fastboot/ember-cli-fastboot/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/ember-fastboot/ember-cli-fastboot/issues/246/comments","events_url":"https://api.github.com/repos/ember-fastboot/ember-cli-fastboot/issues/246/events","html_url":"https://github.com/ember-fastboot/ember-cli-fastboot/issues/246","id":169070565,"number":246,"title":"Race condition prevents cleaning of dist folder between rebuilds","user":{"login":"gandalfar","id":13806,"avatar_url":"https://avatars.githubusercontent.com/u/13806?v=3","gravatar_id":"","url":"https://api.github.com/users/gandalfar","html_url":"https://github.com/gandalfar","followers_url":"https://api.github.com/users/gandalfar/followers","following_url":"https://api.github.com/users/gandalfar/following{/other_user}","gists_url":"https://api.github.com/users/gandalfar/gists{/gist_id}","starred_url":"https://api.github.com/users/gandalfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gandalfar/subscriptions","organizations_url":"https://api.github.com/users/gandalfar/orgs","repos_url":"https://api.github.com/users/gandalfar/repos","events_url":"https://api.github.com/users/gandalfar/events{/privacy}","received_events_url":"https://api.github.com/users/gandalfar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-08-03T07:57:31Z","updated_at":"2016-11-22T11:09:53Z","closed_at":null,"body":"The first time I run a fastboot on a simple project, it works. Second time it crashes:\n\n```\n➜  moment-fastboot-example git:(master) NODE_DEBUG=fs ember fastboot --serve-assets\nInstalling FastBoot npm dependencies\n\nBuild successful - 12390ms.\n\nSlowest Trees                                 | Total               \n----------------------------------------------+---------------------\nBabel                                         | 4257ms              \nBabel                                         | 2892ms              \nBabel                                         | 689ms               \n\nSlowest Trees (cumulative)                    | Total (avg)         \n----------------------------------------------+---------------------\nBabel (30)                                    | 9917ms (330 ms)     \n\nDEBUG: -------------------------------\nDEBUG: Ember      : 2.7.0\nDEBUG: Ember Data : 2.7.0\nDEBUG: -------------------------------\nEmber FastBoot running at http://[::]:3000\n^C%                                                                                                                                                                                                                                                                          ➜  moment-fastboot-example git:(master) NODE_DEBUG=fs ember fastboot --serve-assets\nInstalling FastBoot npm dependencies\n\nBuild successful - 2498ms.\n\nSlowest Trees                                 | Total               \n----------------------------------------------+---------------------\nSourceMapConcat: Concat: Vendor /assets/ve... | 135ms               \n\nSlowest Trees (cumulative)                    | Total (avg)         \n----------------------------------------------+---------------------\nBabel (30)                                    | 678ms (22 ms)       \nSourceMapConcat: Concat: Vendor /asset... (2) | 257ms (128 ms)      \nJSHint templates (2)                          | 155ms (77 ms)       \n\nfs.js:88\n        throw backtrace;\n        ^\n\nError: ENOTEMPTY: directory not empty, rmdir '/Users/gandalf/hacking/fastboot/moment-fastboot-example/dist/node_modules/moment/src/'\n    at rethrow (fs.js:83:21)\n    at maybeCallback (fs.js:101:42)\n    at Object.fs.rmdir (fs.js:871:14)\n    at TreeSync.<anonymous> (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/tree-sync/index.js:79:19)\n    at Array.forEach (native)\n    at TreeSync.sync (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/tree-sync/index.js:50:14)\n    at CoreObject.module.exports.Task.extend.copyToOutputPath (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/ember-cli/lib/models/builder.js:173:10)\n    at /Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/ember-cli/lib/models/builder.js:187:21\n    at lib$rsvp$$internal$$tryCatch (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/rsvp/dist/rsvp.js:493:16)\n    at lib$rsvp$$internal$$invokeCallback (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/rsvp/dist/rsvp.js:505:17)\n\n```\n\nRepository that I used to test: https://github.com/gandalfar/moment-fastboot-example\n\n```\n➜  moment-fastboot-example git:(master) ember -v\nember-cli: 2.7.0\nnode: 6.2.1\nos: darwin x64\n```\n\nConnected ticket with a bit more discussion: https://github.com/jasonmit/ember-cli-moment-shim/issues/55\n"},"comment":{"url":"https://api.github.com/repos/ember-fastboot/ember-cli-fastboot/issues/comments/262213085","html_url":"https://github.com/ember-fastboot/ember-cli-fastboot/issues/246#issuecomment-262213085","issue_url":"https://api.github.com/repos/ember-fastboot/ember-cli-fastboot/issues/246","id":262213085,"user":{"login":"danmcclain","id":144138,"avatar_url":"https://avatars.githubusercontent.com/u/144138?v=3","gravatar_id":"","url":"https://api.github.com/users/danmcclain","html_url":"https://github.com/danmcclain","followers_url":"https://api.github.com/users/danmcclain/followers","following_url":"https://api.github.com/users/danmcclain/following{/other_user}","gists_url":"https://api.github.com/users/danmcclain/gists{/gist_id}","starred_url":"https://api.github.com/users/danmcclain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmcclain/subscriptions","organizations_url":"https://api.github.com/users/danmcclain/orgs","repos_url":"https://api.github.com/users/danmcclain/repos","events_url":"https://api.github.com/users/danmcclain/events{/privacy}","received_events_url":"https://api.github.com/users/danmcclain/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T11:09:53Z","updated_at":"2016-11-22T11:09:53Z","body":"@blackening999 remove your `dist/node_modules` folder to get past this. It's because we are still calling npm install in the ember fastboot command"}}
{"actor":{"display_login":"danmcclain"}}