Skip to content

fix(@ngtools/webpack): getCanonicalFileName should return FS compatible paths#17692

Merged
clydin merged 1 commit intoangular:masterfrom
alan-agius4:ngtools-canonical
May 12, 2020
Merged

fix(@ngtools/webpack): getCanonicalFileName should return FS compatible paths#17692
clydin merged 1 commit intoangular:masterfrom
alan-agius4:ngtools-canonical

Conversation

@alan-agius4
Copy link
Copy Markdown
Collaborator

Unlike TSC which has it's own mechanism the resolve and join paths in POSIX format, NGTSC heavily relies onNode.JS fs and path modules. This prevents Path usage because in Windows path.resolve will causes an absolute path to be resolved or joined incorrectly. Example: /D/MyPath/MyProject -> D:/d/mypath/myproject.

With this change we change the getCanonicalFileName method to return FS compatible paths.

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label May 11, 2020
@alan-agius4 alan-agius4 requested a review from clydin May 11, 2020 09:44
@alan-agius4
Copy link
Copy Markdown
Collaborator Author

//CC @JoostK and @petebacondarwin.

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 11, 2020
…le paths

Unlike TSC which has it's own mechanism the resolve and join paths in POSIX format, NGTSC heavily relies onNode.JS `fs` and `path` modules. This prevents `Path` usage because in Windows `path.resolve` will causes an absolute path to be resolved or joined incorrectly.  Example:  `/D/MyPath/MyProject` -> `D:/d/mypath/myproject`.

With this change we change the `getCanonicalFileName` method to return FS compatible paths.
@clydin clydin merged commit e8e832e into angular:master May 12, 2020
@alan-agius4 alan-agius4 deleted the ngtools-canonical branch May 12, 2020 18:06
@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 Jun 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants