-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc,fs: keep consistent with fs.link and fs.linkSync #3912
Conversation
In |
|
Ah, I didn't know it's consistent with (I'm using OSX). |
Oh, @targos @evanlucas Why do you reference the command
Then now I'm able to understand why the author of this function used However, not all Node.js user is such that familiar with Linux like me, then the naming of arguments in |
Ahhh good point. I think that this is less confusing than the current documentation. LGTM |
@@ -665,7 +665,7 @@ is `'file'`) and is only available on Windows (ignored on other platforms). | |||
Note that Windows junction points require the destination path to be absolute. When using | |||
`'junction'`, the `destination` argument will automatically be normalized to absolute path. |
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.
You also need to update mentions of "destination path" here.
Fair enough, I didn't get that the point was to make it consistent with |
Never mind @targos, fixed nits and updated the naming in source files, LGTY too? |
BTW, I found a typo of errors in |
@yorkie ... awesome. This LGTM but curious what @nodejs/ctc would think about the semver-iness of this change. It seems like a fairly significant mismatch between the docs, the API and the implementation in JS. Also, minor nit, can you please update the title of the PR to be |
I'm going to mark this semver-major for now as a precaution. |
Done :-) |
How is this going? is the CI happy now? This seems to be suspended over 4 days :-) |
Just to be clear, this change won't break any existing code or will it? |
The documentation change is incorrect. I reverted a similar change in in 5843ae8. |
Let me clarify a bit, too.
If this patch gets landed, it becomes this:
If the |
Thanks @piscisaureus and now I have some explanations more about this question, the following is a description from
The above manual seems to use
So I think the file pointed from the link should be unified by this manual.
@piscisaureus as you said, I correct your words as: creates a symbolic link/pointer to the source_file, and this link/pointer is named by target_file, so I'm proposing that Node.js should use |
It's not that easy. In the Linux doc, |
A symbolic link points to another path. There doesn't actually need to be a file there. I think "target" is an appropriate name for the path that the symbolic link points to.
You can see the linux man pages do the same thing:
versus |
d3bfaa1
to
e320969
Compare
@piscisaureus I do that agree with you 100%, and I now updated my commits to use target instead of destination. Could you take a look again, thank you guys :-) |
LGTM. Thanks for your patience @yorkie! |
LGTM if CI is happy. |
@yorkie CI doesn't seem to be happy with this change. https://ci.nodejs.org/job/node-test-commit-osx/1298/nodes=osx1010/console |
Sorry, I guess I have something forgot to update, I will check it again, sorry :-) |
That's right |
@Trott +1... label removed |
LGTM |
LGTM |
Btw, if semver is right to marjor, when this would get this merged? Does this get documented? |
Thank you guys :-) |
Ping guys |
@Trott Why create a new CI? because I didn't push any changes to the last CI. |
Whoops, my mistake. |
@yorkie your last push was 10 days ago, it can be possible that new commits on master make the changes in this PR fail |
FWIW, the latest CI passed except for known-flaky tests on Windows (including one that would be fixed by #4062, hey someone go look at that and give it an LGTM if you're comfy with the change, will ya?). |
PR-URL: #3912 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Bert Belder <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Landed in 8c35903 (The patch didn't apply cleanly on |
@Trott I guess you missed to add @trevnorris to reviewers list at 8c35903 |
Never mind, that's my fault, thank you Trott :-) |
PR-URL: #3912 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Bert Belder <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #3912 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Bert Belder <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: #3912 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Bert Belder <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: nodejs#3912 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Bert Belder <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
So firstly, the destination has a little confusion like I got the log:
And my source call is:
Because I thought the first argument stands for destination as the original doc is telling, but it actually is
source
. Plus, I also makelink*
andsymlinkSync
be consistent :-)