Uh oh!
There was an error while loading. Please reload this page.
doc,fs: keep consistent with fs.link and fs.linkSync - #3912
Conversation
targos
commented
Nov 19, 2015
In |
evanlucas
commented
Nov 19, 2015
|
yorkie
commented
Nov 19, 2015
Ah, I didn't know it's consistent with (I'm using OSX). |
yorkie
commented
Nov 19, 2015
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 |
evanlucas
commented
Nov 19, 2015
Ahhh good point. I think that this is less confusing than the current documentation. LGTM |
There was a problem hiding this comment.
You also need to update mentions of "destination path" here.
targos
commented
Nov 19, 2015
Fair enough, I didn't get that the point was to make it consistent with |
yorkie
commented
Nov 19, 2015
Never mind @targos, fixed nits and updated the naming in source files, LGTY too? |
targos
commented
Nov 19, 2015
yorkie
commented
Nov 19, 2015
BTW, I found a typo of errors in |
jasnell
commented
Nov 19, 2015
@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 |
jasnell
commented
Nov 19, 2015
I'm going to mark this semver-major for now as a precaution. |
yorkie
commented
Nov 19, 2015
Done :-) |
yorkie
commented
Nov 23, 2015
How is this going? is the CI happy now? This seems to be suspended over 4 days :-) |
trevnorris
commented
Nov 23, 2015
Just to be clear, this change won't break any existing code or will it? |
piscisaureus
commented
Nov 23, 2015
The documentation change is incorrect. I reverted a similar change in in 5843ae8. |
piscisaureus
commented
Nov 23, 2015
Let me clarify a bit, too.
If this patch gets landed, it becomes this:
If the |
yorkie
commented
Nov 24, 2015
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 |
targos
commented
Nov 24, 2015
It's not that easy. In the Linux doc, |
piscisaureus
commented
Nov 24, 2015
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 |
yorkie
commented
Nov 25, 2015
@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 :-) |
piscisaureus
commented
Nov 25, 2015
LGTM. Thanks for your patience @yorkie! |
evanlucas
commented
Nov 25, 2015
LGTM if CI is happy. |
evanlucas
commented
Nov 25, 2015
@yorkie CI doesn't seem to be happy with this change. https://ci.nodejs.org/job/node-test-commit-osx/1298/nodes=osx1010/console |
yorkie
commented
Nov 25, 2015
Sorry, I guess I have something forgot to update, I will check it again, sorry :-) |
targos
commented
Dec 1, 2015
That's right |
jasnell
commented
Dec 1, 2015
@Trott +1... label removed |
jasnell
commented
Dec 1, 2015
LGTM |
targos
commented
Dec 1, 2015
LGTM |
yorkie
commented
Dec 1, 2015
Btw, if semver is right to marjor, when this would get this merged? Does this get documented? |
yorkie
commented
Dec 1, 2015
Thank you guys :-) |
yorkie
commented
Dec 5, 2015
Ping guys |
Trott
commented
Dec 5, 2015
yorkie
commented
Dec 6, 2015
@Trott Why create a new CI? because I didn't push any changes to the last CI. |
Trott
commented
Dec 6, 2015
Whoops, my mistake. |
targos
commented
Dec 6, 2015
@yorkie your last push was 10 days ago, it can be possible that new commits on master make the changes in this PR fail |
Trott
commented
Dec 6, 2015
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 <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Trott
commented
Dec 6, 2015
Landed in 8c35903 (The patch didn't apply cleanly on |
yorkie
commented
Dec 6, 2015
@Trott I guess you missed to add @trevnorris to reviewers list at 8c35903 |
yorkie
commented
Dec 6, 2015
Never mind, that's my fault, thank you Trott :-) |
PR-URL: #3912 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #3912 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: #3912 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: nodejs#3912 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Bert Belder <bertbelder@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
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*andsymlinkSyncbe consistent :-)