-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Replace NodeJS "path" with "upath": normalize paths to posix style #4124
Labels
proposal
This issue is a proposal, usually non-trivial change
Comments
slorber
added a commit
that referenced
this issue
Jan 29, 2021
* EditUrl function * normalize blog/docs regarding the editUrl feature + editUrl function * editUrl fn => always inject posix style relative paths, make tests more reliable (see also #4124) * fix editUrl on windows
Looks like @armano2 you mentioned Both can be a solution, but apparently, they do not have the exact same behavior: anodynos/upath#26 |
that's why i deleted my comment :) |
Not sure we need upath, we don't often get windows path issues anymore after the problem has been understood |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
💥 Proposal
https://www.npmjs.com/package/upath#why
It could be less painful to ensure Windows support if all paths where using posix style (
/
separator) instead of being platform dependent.Windows/NodeJS is able to understand both
/
and\\
so it would be nice to normalize on all paths on posix style.This could prevent issues we often see after committing, when the CI (build or tests) fails but only on Windows, such as:
My idea would be to:
upath.normalize()
everywhere instead of our customposixPath()
fn.The text was updated successfully, but these errors were encountered: