{"action":"created","issue":{"url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/55","repository_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim","labels_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/55/comments","events_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/55/events","html_url":"https://github.com/jasonmit/ember-cli-moment-shim/issues/55","id":168865679,"number":55,"title":"Using timezone in environment.js crashes fastboot","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":[{"url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/labels/waiting%20on%20submitter%20feedback","name":"waiting on submitter feedback","color":"f9d0c4"}],"state":"open","locked":false,"assignee":{"login":"jasonmit","id":3108309,"avatar_url":"https://avatars.githubusercontent.com/u/3108309?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmit","html_url":"https://github.com/jasonmit","followers_url":"https://api.github.com/users/jasonmit/followers","following_url":"https://api.github.com/users/jasonmit/following{/other_user}","gists_url":"https://api.github.com/users/jasonmit/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmit/subscriptions","organizations_url":"https://api.github.com/users/jasonmit/orgs","repos_url":"https://api.github.com/users/jasonmit/repos","events_url":"https://api.github.com/users/jasonmit/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmit/received_events","type":"User","site_admin":false},"assignees":[{"login":"jasonmit","id":3108309,"avatar_url":"https://avatars.githubusercontent.com/u/3108309?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmit","html_url":"https://github.com/jasonmit","followers_url":"https://api.github.com/users/jasonmit/followers","following_url":"https://api.github.com/users/jasonmit/following{/other_user}","gists_url":"https://api.github.com/users/jasonmit/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmit/subscriptions","organizations_url":"https://api.github.com/users/jasonmit/orgs","repos_url":"https://api.github.com/users/jasonmit/repos","events_url":"https://api.github.com/users/jasonmit/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmit/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-08-02T11:46:52Z","updated_at":"2016-08-03T05:07:07Z","closed_at":null,"body":"Apologies if it's against wrong repo. I'm not yet sure how to distinguish between fastboot and addon errors.\r\n\r\nSteps to reproduce:\r\n\r\n1. Add:\r\n\r\n```\r\n    moment: {\r\n      includeTimezone: '2010-2020'\r\n    }\r\n``` \r\nto `environment.js`:\r\n\r\n```\r\nmodule.exports = function(environment) {\r\n  var ENV = {\r\n    modulePrefix: 'moment-fastboot-example',\r\n    environment: environment,\r\n    rootURL: '/',\r\n    locationType: 'auto',\r\n    EmberENV: {\r\n      FEATURES: {\r\n        // Here you can enable experimental features on an ember canary build\r\n        // e.g. 'with-controller': true\r\n      }\r\n    },\r\n\r\n    APP: {\r\n      // Here you can pass flags/options to your application instance\r\n      // when it is created\r\n    },\r\n    moment: {\r\n      includeTimezone: '2010-2020'\r\n    }\r\n  };\r\n..\r\n```\r\n\r\n2. Run `NODE_DEBUG=fs ember fastboot --serve-assets`\r\n3. \r\n\r\n```\r\n➜  moment-fastboot-example git:(master) ✗ NODE_DEBUG=fs ember fastboot --serve-assets\r\nInstalling FastBoot npm dependencies\r\n\r\nBuild successful - 5007ms.\r\n\r\nSlowest Trees                                 | Total               \r\n----------------------------------------------+---------------------\r\nAddon#treeFor (ember-cli-release - addon)     | 499ms               \r\nFunnel: Addon JS                              | 451ms               \r\nSourceMapConcat: Concat: Vendor /assets/ve... | 275ms               \r\nSourceMapConcat: Concat: Vendor /assets/ve... | 272ms               \r\n\r\nSlowest Trees (cumulative)                    | Total (avg)         \r\n----------------------------------------------+---------------------\r\nBabel (30)                                    | 1060ms (35 ms)      \r\nFunnel: Addon JS (18)                         | 555ms (30 ms)       \r\nSourceMapConcat: Concat: Vendor /asset... (2) | 548ms (274 ms)      \r\nAddon#treeFor (ember-cli-release - addon) (2) | 500ms (250 ms)      \r\n\r\nfs.js:88\r\n        throw backtrace;\r\n        ^\r\n\r\nError: ENOTEMPTY: directory not empty, rmdir '/Users/gandalf/hacking/fastboot/moment-fastboot-example/dist/node_modules/moment-timezone/'\r\n    at rethrow (fs.js:83:21)\r\n    at maybeCallback (fs.js:101:42)\r\n    at Object.fs.rmdir (fs.js:871:14)\r\n    at TreeSync.<anonymous> (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/tree-sync/index.js:79:19)\r\n    at Array.forEach (native)\r\n    at TreeSync.sync (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/tree-sync/index.js:50:14)\r\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)\r\n    at /Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/ember-cli/lib/models/builder.js:187:21\r\n    at lib$rsvp$$internal$$tryCatch (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/rsvp/dist/rsvp.js:493:16)\r\n    at lib$rsvp$$internal$$invokeCallback (/Users/gandalf/hacking/fastboot/moment-fastboot-example/node_modules/rsvp/dist/rsvp.js:505:17)\r\n```\r\n\r\nThis error persists even if I remove the above lines in the `environment.js`\r\n\r\nRepo with the above problem: https://github.com/gandalfar/moment-fastboot-example\r\n\r\n```\r\n➜  moment-fastboot-example git:(master) ember -v\r\nember-cli: 2.7.0\r\nnode: 6.2.1\r\nos: darwin x64\r\n```"},"comment":{"url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/comments/237140549","html_url":"https://github.com/jasonmit/ember-cli-moment-shim/issues/55#issuecomment-237140549","issue_url":"https://api.github.com/repos/jasonmit/ember-cli-moment-shim/issues/55","id":237140549,"user":{"login":"jasonmit","id":3108309,"avatar_url":"https://avatars.githubusercontent.com/u/3108309?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmit","html_url":"https://github.com/jasonmit","followers_url":"https://api.github.com/users/jasonmit/followers","following_url":"https://api.github.com/users/jasonmit/following{/other_user}","gists_url":"https://api.github.com/users/jasonmit/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmit/subscriptions","organizations_url":"https://api.github.com/users/jasonmit/orgs","repos_url":"https://api.github.com/users/jasonmit/repos","events_url":"https://api.github.com/users/jasonmit/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmit/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T05:07:07Z","updated_at":"2016-08-03T05:07:07Z","body":"Yeah, I believe this to be a symptom of the same race condition I pointed out above.  It's ember-cli + ember-cli-fastboot looks to be trying to `npm install` and remove the directory at the same time.\r\n\r\nCan you open a new issue against ember-cli-fastboot?"}}
{"actor":{"display_login":"jasonmit"}}