-
Notifications
You must be signed in to change notification settings - Fork 12k
fix(@angular/cli): command runner is not working on windows #11929
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
Conversation
`fs` is unable to read the normalized paths from `@angular-devkit/core` on `windows` as the disk drive is replaced from `c:/` to `/c/` Closes #11928
@@ -111,7 +108,7 @@ export async function runCommand( | |||
|
|||
return 1; | |||
} | |||
const cliDir = dirname(normalize(commandMapPath)); | |||
const cliDir = dirname(commandMapPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: dirname will internally normalize
the path before returning.
FYI @hansl looks like it was introduced in your 2ce1155#diff-53bc4547164f6bfb4fee01f58a298892 |
On another note, is it really required to remove the |
@alan-agius4 there's a misunderstanding here;
|
@hansl thanks for the clarifications. 👍 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fs
is unable to read the normalized paths from@angular-devkit/core
onwindows
as the disk drive is replaced fromc:/
to/c/
Closes #11928
Another alternative is to use
getSystemPath
in all the places where the is readFileSync within the runner. But I found the current implementation to be cleaner.This was not caught in CI, as in
AppVeyor
we are not runningtest-cli-e2e