Title: Incorrect use of --directory param · Issue #19496 · angular/angular-cli · GitHub
Open Graph Title: Incorrect use of --directory param · Issue #19496 · angular/angular-cli
X Title: Incorrect use of --directory param · Issue #19496 · angular/angular-cli
Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint extract-i18n run config help version doc Is this a regression? No, this issue has been in the CLI for a long time Description When using the --direct...
Open Graph Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint extract-i18n run config help version doc Is this a regression? No, this issue has been in the CLI for a long ...
X Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint extract-i18n run config help version doc Is this a regression? No, this issue has been in the CLI for a long ...
Opengraph URL: https://github.com/angular/angular-cli/issues/19496
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect use of --directory param","articleBody":"# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n\u003c!-- Can you pin-point the command or commands that are effected by this bug? --\u003e\r\n\u003c!-- ✍️edit: --\u003e\r\n\r\n- [x] new\r\n- [ ] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] extract-i18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n\r\n\r\n### Is this a regression?\r\n\r\nNo, this issue has been in the CLI for a long time\r\n\r\n### Description\r\n\r\nWhen using the `--directory` param with the absolute path, the CLI does not respect the value and creates the directory path relative to the current directory instead.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nRun the following command:\r\n\r\n```shell\r\nng new app1 --directory=/tmp/app1 --skip-install\r\n```\r\n\r\nExpected behaviour:\r\n\r\nThe application is generated within `/tmp/app1` directory.\r\n\r\nActual behaviour: \r\n\r\nThe application is generated within current directory: `./tmp/app1`\r\n\r\n## 🌍 Your Environment\r\n\u003cpre\u003e\u003ccode\u003e\r\n\u003c!-- run `ng version` and paste output below --\u003e\r\nAngular CLI: 11.0.2\r\nNode: 14.15.0\r\nOS: darwin x64\r\n\r\nAngular: \r\n... \r\nIvy Workspace: \r\n\r\nPackage Version\r\n------------------------------------------------------\r\n@angular-devkit/architect 0.1100.2 (cli-only)\r\n@angular-devkit/core 11.0.2 (cli-only)\r\n@angular-devkit/schematics 11.0.2 (cli-only)\r\n@schematics/angular 11.0.2 (cli-only)\r\n@schematics/update 0.1100.2 (cli-only)\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n**Anything else relevant?**\r\n\u003c!-- ✍️Is this a browser specific issue? If so, please specify the browser and version. --\u003e\r\n\r\n\u003c!-- ✍️Do any of these matter: operating system, IDE, package manager, HTTP server, ...? If so, please mention it below. --\u003e\r\nUsing macOS","author":{"url":"https://github.com/DenysVuika","@type":"Person","name":"DenysVuika"},"datePublished":"2020-11-28T17:51:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19496/angular-cli/issues/19496"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b001e3fc-ad2b-f9e9-1452-31372e0e48f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9AE:122F3D:3C21807:50157EE:6964C22B |
| html-safe-nonce | 1218fa6eaa22e77b2ffae421ec1b035f71529bf36e7c01f644e3b3b306ec6b15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUFFOjEyMkYzRDozQzIxODA3OjUwMTU3RUU6Njk2NEMyMkIiLCJ2aXNpdG9yX2lkIjoiMTc2MDUzNjc5NjA5NzQ2MjgyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ad1eff58c1c659de4b3c28b86f8f68dcc66ad83b1917a89d9070e54c5724fcb8 |
| hovercard-subject-tag | issue:752732882 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/19496/issue_layout |
| twitter:image | https://opengraph.githubassets.com/650105968ddb2cd90541ed5551ccd36713426a57326dc5cb52aea37e69c5e920/angular/angular-cli/issues/19496 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/650105968ddb2cd90541ed5551ccd36713426a57326dc5cb52aea37e69c5e920/angular/angular-cli/issues/19496 |
| og:image:alt | 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint extract-i18n run config help version doc Is this a regression? No, this issue has been in the CLI for a long ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DenysVuika |
| hostname | github.com |
| expected-hostname | github.com |
| None | 21df671ce2c9f1a16940ccbd3af6cb4f3f12a856929ca7eb1b4aea8e384ea442 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5707c685ac172d50a0bdd7533dde4f8aabcf8eef |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width