-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(core): normalize project config paths to properly match them when combining them #15149
fix(core): normalize project config paths to properly match them when combining them #15149
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thank you for the fix, @leosvelperez. I was trying to reproduce this yesterday and found the e2e test: nx/e2e/nx-misc/src/workspace.test.ts Lines 348 to 354 in 8a58cdd
But I was not able to run it. Its timeouted for me with error log:
Do you know if these test are supposed to be green and is it just my configuration or are they broken for everyone? |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
On Windows, when combining globbed project config files with the tree changes there's a mix of Unix-like and Windows-like paths. Globbed files and newly created ones (from the tree) have Windows-like paths while the deleted files (from the tree) have Unix-like paths. That causes a filter where we remove the deleted project files not to work as expected because the file paths don't match. It ultimately results in an error when trying to read a file that no longer exists in the tree (it's deleted).
Expected Behavior
Getting all the project config files should work correctly in Windows.
Related Issue(s)
Fixes #15080