Skip to content

Windows ngcc infinite loop - #30212

Closed
alan-agius4 wants to merge 3 commits into
angular:masterfrom
alan-agius4:windows-ngcc-infinate-loop
Closed

alan-agius4 wants to merge 3 commits into
angular:masterfrom
alan-agius4:windows-ngcc-infinate-loop

Conversation

@alan-agius4

Copy link
Copy Markdown
Contributor

fix(ivy): handle windows drives correctly

At the moment the module resolver will end up in an infinite loop in Windows because we are assuming that the root directory is always / however in windows this can be any drive letter example c:/ or d:/ etc...

With this change we also resolve the drive letter in windows, when using AbsoluteFsPath.from for consistence so under /foo will be converted to c:/foo this is also needed because of relative paths with different drive letters.

test: fix ngcc unit tests in windows

//packages/compiler-cli/ngcc/test:test

Partially addresses #29785

@alan-agius4 alan-agius4 added area: core Issues related to the framework runtime target: major This PR is targeted for the next major release comp: ivy labels Apr 30, 2019
@alan-agius4
alan-agius4 requested review from a team April 30, 2019 11:47
@ngbot ngbot Bot added this to the needsTriage milestone Apr 30, 2019
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Apr 30, 2019
At the moment the module resolver will end up in an infinite loop in Windows because we are assuming that the root directory is always `/` however in windows this can be any drive letter example `c:/` or `d:/` etc...

With this change we also resolve the drive letter in windows, when using `AbsoluteFsPath.from` for consistence so under `/foo` will be converted to `c:/foo` this is also needed because of relative paths with different drive letters.
```
//packages/compiler-cli/ngcc/test:test
```

Partially addresses #29785

@devversion devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for dev-infra.

@alan-agius4

Copy link
Copy Markdown
Contributor Author

Superseded by #30297

@alan-agius4 alan-agius4 closed this May 7, 2019
@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 Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review The PR is still awaiting reviews from at least one requested reviewer area: core Issues related to the framework runtime cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants