Skip to content

updateWorkspace rule doesn't detect new targets to targets when empty #15403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bgotink opened this issue Aug 21, 2019 · 1 comment · Fixed by #15413
Closed

updateWorkspace rule doesn't detect new targets to targets when empty #15403

bgotink opened this issue Aug 21, 2019 · 1 comment · Fixed by #15413
Labels
area: @angular-devkit/core freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Milestone

Comments

@bgotink
Copy link
Contributor

bgotink commented Aug 21, 2019

🐞 Bug report

Command (mark with an x)

Anything schematics-related

Is this a regression?

Not that I know of

Description

updateWorkspace doesn't detect targets that are added to a project that didn't contain any targets yet.

🔬 Minimal Reproduction

Use updateWorkspace to add a target to an existing project that doesn't already have a target. The new target won't be detected and will not be comitted to disk by the schematic.

Repro: https://github.com/bgotink/angular-update-workspace-repro

🔥 Exception or Error

None

🌍 Your Environment



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 8.2.2
Node: 10.15.3
OS: darwin x64
Angular: undefined
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.802.2
@angular-devkit/core         8.2.2
@angular-devkit/schematics   8.2.2
@angular/cli                 8.2.2
@schematics/angular          8.2.2
@schematics/update           0.802.2
rxjs                         6.4.0
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular-devkit/core freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants