{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/4500","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/4500/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/4500/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/4500/events","html_url":"https://github.com/angular/angular-cli/issues/4500","id":205979150,"number":4500,"title":"--dry-run creates empty folder","user":{"login":"niklas-dahl","id":14973744,"avatar_url":"https://avatars2.githubusercontent.com/u/14973744?v=3","gravatar_id":"","url":"https://api.github.com/users/niklas-dahl","html_url":"https://github.com/niklas-dahl","followers_url":"https://api.github.com/users/niklas-dahl/followers","following_url":"https://api.github.com/users/niklas-dahl/following{/other_user}","gists_url":"https://api.github.com/users/niklas-dahl/gists{/gist_id}","starred_url":"https://api.github.com/users/niklas-dahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niklas-dahl/subscriptions","organizations_url":"https://api.github.com/users/niklas-dahl/orgs","repos_url":"https://api.github.com/users/niklas-dahl/repos","events_url":"https://api.github.com/users/niklas-dahl/events{/privacy}","received_events_url":"https://api.github.com/users/niklas-dahl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-07T18:47:21Z","updated_at":"2017-03-02T02:35:52Z","closed_at":null,"body":"\r\n### OS?\r\n> Windows 7\r\n\r\n\r\n### Versions.\r\n@angular/cli: 1.0.0-beta.30\r\nnode: 7.5.0\r\nos: win32 x64\r\n@angular/common: 2.4.6\r\n@angular/compiler: 2.4.6\r\n@angular/core: 2.4.6\r\n@angular/forms: 2.4.6\r\n@angular/http: 2.4.6\r\n@angular/platform-browser: 2.4.6\r\n@angular/platform-browser-dynamic: 2.4.6\r\n@angular/router: 3.4.6\r\n@angular/cli: 1.0.0-beta.30\r\n@angular/compiler-cli: 2.4.6\r\n\r\n### Repro steps.\r\n> Was this an app that wasn't created using the CLI? What change did you do on your code? etc.\r\n1. `ng new proj && cd proj`\r\n2. `ng g module settings3 --routing --dry-run`\r\n\r\n```\r\nλ ng g module settings3 --routing --dry-run\r\ninstalling module\r\nYou specified the dry-run flag, so no changes will be written.\r\n  create src\\app\\settings3\\settings3-routing.module.ts\r\n  create src\\app\\settings3\\settings3.module.ts\r\ninstalling component\r\nYou specified the dry-run flag, so no changes will be written.\r\n  create src\\app\\settings3\\settings3.component.css\r\n  create src\\app\\settings3\\settings3.component.html\r\n  create src\\app\\settings3\\settings3.component.spec.ts\r\n  create src\\app\\settings3\\settings3.component.ts\r\n```\r\nDespite saying no changes will be written an empty folder `src/app/settings3` is created.\r\n\r\n### Mention any other details that might be useful.\r\nWithout the `routing` flag no empty folder is generated.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/283538496","html_url":"https://github.com/angular/angular-cli/issues/4500#issuecomment-283538496","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/4500","id":283538496,"user":{"login":"delasteve","id":595925,"avatar_url":"https://avatars3.githubusercontent.com/u/595925?v=3","gravatar_id":"","url":"https://api.github.com/users/delasteve","html_url":"https://github.com/delasteve","followers_url":"https://api.github.com/users/delasteve/followers","following_url":"https://api.github.com/users/delasteve/following{/other_user}","gists_url":"https://api.github.com/users/delasteve/gists{/gist_id}","starred_url":"https://api.github.com/users/delasteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delasteve/subscriptions","organizations_url":"https://api.github.com/users/delasteve/orgs","repos_url":"https://api.github.com/users/delasteve/repos","events_url":"https://api.github.com/users/delasteve/events{/privacy}","received_events_url":"https://api.github.com/users/delasteve/received_events","type":"User","site_admin":false},"created_at":"2017-03-02T02:35:52Z","updated_at":"2017-03-02T02:35:52Z","body":"I just attempted this with `rc.0` and was not able to reproduce it.\r\n\r\n```\r\ntest-app (master) » ng g module settings3 --routing --dry-run\r\ninstalling module\r\nYou specified the dry-run flag, so no changes will be written.\r\n  create src/app/settings3/settings3-routing.module.ts\r\n  create src/app/settings3/settings3.module.ts\r\n```\r\n\r\n```\r\ntest-app (master) » ls src/app\r\napp.component.css     app.component.html    app.component.spec.ts app.component.ts      app.module.ts\r\n```"}}
{"actor":{"display_login":"delasteve"}}