{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/12600","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/12600/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/12600/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/12600/events","html_url":"https://github.com/angular/angular-cli/issues/12600","id":370292744,"node_id":"MDU6SXNzdWUzNzAyOTI3NDQ=","number":12600,"title":"schematics-cli: inconsistency in referencing collection","user":{"login":"Splaktar","id":3506071,"node_id":"MDQ6VXNlcjM1MDYwNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/3506071?v=4","gravatar_id":"","url":"https://api.github.com/users/Splaktar","html_url":"https://github.com/Splaktar","followers_url":"https://api.github.com/users/Splaktar/followers","following_url":"https://api.github.com/users/Splaktar/following{/other_user}","gists_url":"https://api.github.com/users/Splaktar/gists{/gist_id}","starred_url":"https://api.github.com/users/Splaktar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Splaktar/subscriptions","organizations_url":"https://api.github.com/users/Splaktar/orgs","repos_url":"https://api.github.com/users/Splaktar/repos","events_url":"https://api.github.com/users/Splaktar/events{/privacy}","received_events_url":"https://api.github.com/users/Splaktar/received_events","type":"User","site_admin":false},"labels":[{"id":815674807,"node_id":"MDU6TGFiZWw4MTU2NzQ4MDc=","url":"https://api.github.com/repos/angular/angular-cli/labels/comp:%20devkit/schematics","name":"comp: devkit/schematics","color":"c7def8","default":false},{"id":531674830,"node_id":"MDU6TGFiZWw1MzE2NzQ4MzA=","url":"https://api.github.com/repos/angular/angular-cli/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":531675405,"node_id":"MDU6TGFiZWw1MzE2NzU0MDU=","url":"https://api.github.com/repos/angular/angular-cli/labels/severity3:%20broken","name":"severity3: broken","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular-cli/milestones/11","html_url":"https://github.com/angular/angular-cli/milestone/11","labels_url":"https://api.github.com/repos/angular/angular-cli/milestones/11/labels","id":3561104,"node_id":"MDk6TWlsZXN0b25lMzU2MTEwNA==","number":11,"title":"needsTriage","description":"Milestone for all issues that haven't been triaged yet","creator":{"login":"alexeagle","id":47395,"node_id":"MDQ6VXNlcjQ3Mzk1","avatar_url":"https://avatars2.githubusercontent.com/u/47395?v=4","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"open_issues":51,"closed_issues":90,"state":"open","created_at":"2018-08-10T14:47:05Z","updated_at":"2018-10-23T18:57:23Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-10-15T18:39:47Z","updated_at":"2018-10-23T18:57:23Z","closed_at":"2018-10-23T18:57:23Z","author_association":"MEMBER","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION YOUR ISSUE MIGHT BE CLOSED WITHOUT INVESTIGATING\r\n-->\r\n### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [x] bug report -> please search issues before submitting\r\n- [ ] feature request\r\n```\r\n\r\n### Command (mark with an `x`)\r\n```\r\n- [ ] 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- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n- [x] schematics\r\n```\r\n\r\n### Versions\r\n<!--\r\nOutput from: `node --version`, `npm --version` and `ng --version`.\r\n  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra? High Sierra?)\r\n-->\r\n```\r\nAngular CLI: 7.0.0-rc.3\r\nNode: 10.11.0\r\nOS: darwin x64\r\nAngular: undefined\r\n... \r\n\r\nPackage                      Version\r\n------------------------------------------------------\r\n@angular-devkit/architect    0.9.0-rc.3 (cli-only)\r\n@angular-devkit/core         7.0.0-rc.3\r\n@angular-devkit/schematics   7.0.0-rc.3\r\n@schematics/angular          7.0.0-rc.3 (cli-only)\r\n@schematics/update           0.9.0-rc.3 (cli-only)\r\nrxjs                         6.3.3\r\ntypescript                   2.9.2\r\n```\r\n```\r\nnpm ls -g --depth=0\r\n/Users/splaktar/.nvm/versions/node/v10.11.0/lib\r\n├── @angular-devkit/schematics-cli@0.9.0-rc.3\r\n├── @angular/cli@7.0.0-rc.3\r\n```\r\n### Repro steps\r\n<!--\r\nSimple steps to reproduce this bug.\r\nPlease include: commands run (incl args), packages added, related code changes.\r\nA link to a sample repo would help too.\r\n-->\r\n\r\n1. Create a new schematics project using `schematics schematic --name=test-schematic`.\r\n1. `cd test-schematic`\r\n1. `npm i`\r\n1. `npm run build`\r\n1. `schematics ./src: --list-schematics`\r\n1. `schematics .:my-full-schematic --name=test`\r\n\r\n### The log given by the failure\r\n<!-- Normally this include a stack trace and some more information. -->\r\nN/A\r\n\r\n### Desired functionality\r\n<!--\r\nWhat would like to see implemented?\r\nWhat is the usecase?\r\n-->\r\nWhen authoring a schematic and doing manual testing locally, you do the following:\r\nIn `schematics ./src: --list-schematics`, you reference the collection via `./src:`. This is very confusing as I tried a lot of variations before figuring this out, i.e. the following don't work: `src:`, `.:`, `src/:`, `src/.:`.\r\nIn `schematics .:my-full-schematic --name=test`, you reference the collection via `.:`.\r\n\r\nIt would be nice if `.:` worked for both of these. Can `--list-schematics` see that the `package.json` is there and has a `collections` field just like when running a schematic?\r\n\r\n### Mention any other details that might be useful\r\n<!-- Please include a link to the repo if this is related to an OSS project. -->\r\nI also saw this with `@angular-devkit/schematics-cli@0.9.0-rc.2`."}}
{"actor":{"display_login":"kyliau"}}