-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conditionally stop doing the chmod stuff #22
Comments
Cool! Will keep an eye on it and add support for when available. |
We can now do this without a Node.js version check. We should add a tests to ensure chmod is still being done though. We should also look into whether we can remove the |
@issuehunt has funded $40.00 to this issue.
|
Should there even be But what's more:
If it is indeed needed, I can add a check if we're root for linux and macos(if my assumption is correct), and just get rid of it under windows. Note: it actually throws error(unless root), but it's captured by |
@stroncium It was added in 22ef37b to preserve ownership of the file. I'm not that well-versed in chown, so I trust your judgement more. Let's remove it. |
@sindresorhus If we put it the way it was described in #16(which was solved by 22ef37b) as mirroring I'm just pointing out that normally the ownership part doesn't even work(because you have to be root for that, mentioned It's more or less political choice at the moment, as it is undocumented quirk, and my vote is for removing ownership preservation part(leaving mode preservation as it is), but it would be really good to have at least one more opinion on that. |
Let's just remove it and see if anyone complains. We can explicitly document that only mode is preserved, not ownership. |
…remove related dead code and tests, solves sindresorhus#22
@sindresorhus has rewarded $36.00 to @stroncium. See it on IssueHunt
|
Note libuv/libuv@eaf25ae and https://github.com/nodejs/node/pull/15745/files#diff-194c5460fc6f1d425ebb0ae0270ead06R11
I don't think we can feature test this, so we can just do a Node.js version test.
(It's not out in a Node.js version yet, so no rush)
// @kevva
IssueHunt Summary
stroncium has been rewarded.
Backers (Total: $40.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: