-
Notifications
You must be signed in to change notification settings - Fork 30k
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
fs: fix fs.promises.realpath for long paths on Windows #51032
Merged
nodejs-github-bot
merged 1 commit into
nodejs:main
from
sapphi-red:fix-win-fs-promises-realpath-long-paths
Dec 28, 2023
Merged
fs: fix fs.promises.realpath for long paths on Windows #51032
nodejs-github-bot
merged 1 commit into
nodejs:main
from
sapphi-red:fix-win-fs-promises-realpath-long-paths
Dec 28, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodejs-github-bot
added
fs
Issues and PRs related to the fs subsystem / file system.
needs-ci
PRs that need a full CI run.
labels
Dec 3, 2023
sapphi-red
force-pushed
the
fix-win-fs-promises-realpath-long-paths
branch
from
December 3, 2023 12:23
6b4a8d5
to
7d4a207
Compare
LiviaMedeiros
approved these changes
Dec 3, 2023
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.
The code LGTM.
Nit: although win
is a valid subsystem, it fits, and #44536 used it; IMHO fs: fix fs.promises.realpath for long paths on Windows
might be a better commit message.
benjamingr
approved these changes
Dec 3, 2023
StefanStojanovic
approved these changes
Dec 4, 2023
github-actions
bot
removed
the
request-ci
Add this label to start a Jenkins CI on a PR.
label
Dec 4, 2023
lpinca
approved these changes
Dec 4, 2023
Unlike other fs functions that work with paths, realpath isn't using pathModule.toNamespacedPath prior to calling libuv function. This is causing issues on windows. Windows long path test is also improved to cover the mentioned issue. Fixes: nodejs#51031
sapphi-red
force-pushed
the
fix-win-fs-promises-realpath-long-paths
branch
from
December 5, 2023 14:08
7d4a207
to
cd07613
Compare
sapphi-red
changed the title
win: fix fs.promises.realpath for long paths
fs: fix fs.promises.realpath for long paths on Windows
Dec 5, 2023
I've updated the commit message 👍 (The force push includes no code changes) |
LiviaMedeiros
approved these changes
Dec 5, 2023
jasnell
approved these changes
Dec 9, 2023
github-actions
bot
removed
the
request-ci
Add this label to start a Jenkins CI on a PR.
label
Dec 25, 2023
lpinca
added
the
commit-queue
Add this label to land a pull request using GitHub Actions.
label
Dec 28, 2023
nodejs-github-bot
removed
the
commit-queue
Add this label to land a pull request using GitHub Actions.
label
Dec 28, 2023
Landed in 4944e97 |
RafaelGSS
pushed a commit
that referenced
this pull request
Jan 2, 2024
Unlike other fs functions that work with paths, realpath isn't using pathModule.toNamespacedPath prior to calling libuv function. This is causing issues on windows. Windows long path test is also improved to cover the mentioned issue. Fixes: #51031 PR-URL: #51032 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Merged
richardlau
pushed a commit
that referenced
this pull request
Mar 25, 2024
Unlike other fs functions that work with paths, realpath isn't using pathModule.toNamespacedPath prior to calling libuv function. This is causing issues on windows. Windows long path test is also improved to cover the mentioned issue. Fixes: #51031 PR-URL: #51032 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
richardlau
pushed a commit
that referenced
this pull request
Mar 25, 2024
Unlike other fs functions that work with paths, realpath isn't using pathModule.toNamespacedPath prior to calling libuv function. This is causing issues on windows. Windows long path test is also improved to cover the mentioned issue. Fixes: #51031 PR-URL: #51032 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is almost the same with #44536 but for
fs.promises.realpath
.Fixes: #51031