Skip to content

fix(core): ensure default path is set for control flow migration#64298

Closed
aparzi wants to merge 1 commit intoangular:20.3.xfrom
aparzi:fix-issue-63945-20.3.x-target
Closed

fix(core): ensure default path is set for control flow migration#64298
aparzi wants to merge 1 commit intoangular:20.3.xfrom
aparzi:fix-issue-63945-20.3.x-target

Conversation

@aparzi
Copy link
Copy Markdown
Contributor

@aparzi aparzi commented Oct 8, 2025

When running the control flow migration via ng update, the path parameter could be undefined. This change ensures a default value of './' is used when no path is explicitly provided, making the migration work consistently between ng update and ng generate commands.

Fixes #63294

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue occurred because ng update doesn't apply schema defaults like ng generate does. This fix handles both cases by explicitly setting default values in the migration code.

Issue Number: #63294

What is the new behavior?

This change ensures a default value of './' is used when no path is explicitly provided, making the migration work consistently between ng update and ng generate commands.

Does this PR introduce a breaking change?

  • Yes
  • No

When running the control flow migration via `ng update`, the path parameter could be undefined. This change ensures a default value of './' is used when no path is explicitly provided, making the migration work consistently between `ng update` and `ng generate` commands.

Fixes angular#63294
@pullapprove pullapprove bot requested a review from crisbeto October 8, 2025 18:28
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Oct 8, 2025
@ngbot ngbot bot added this to the Backlog milestone Oct 8, 2025
@JeanMeche JeanMeche closed this Oct 9, 2025
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Nov 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: core Issues related to the framework runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants