GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fs: fix fsPromises.lchmod errors on non-Mac by shisama · Pull Request #21435 · nodejs/node

Conversation

@shisama

@shisama shisama commented Jun 21, 2018

Copy link
Copy Markdown
Contributor

On non-macOS, fsPromises.lchmod and lchown throws AssertionError.
Expected behavior is Error [ERR_METHOD_NOT_IMPLEMENTED].
ERR_METHOD_NOT_IMPLEMENTED() requires argument, but it didn't set.
Fixes ERR_METHOD_NOT_IMPLEMENTED() to ERR_METHOD_NOT_IMPLEMENTED('lchmod')
or ERR_METHOD_NOT_IMPLEMENTED('lchown').

Fixes: #21421

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
    - [ ] documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss and ChALkeR reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@nodejs-github-bot nodejs-github-bot added the fs Issues and PRs related to file-system APIs and the fs module. label Jun 21, 2018
cjihrig
cjihrig approved these changes Jun 21, 2018
View reviewed changes
starkwang
starkwang approved these changes Jun 21, 2018
View reviewed changes
ChALkeR
ChALkeR approved these changes Jun 21, 2018
View reviewed changes
@ChALkeR ChALkeR mentioned this pull request Jun 21, 2018
ERR_TLS_RENEGOTIATE, ERR_HTTP2_SETTINGS_CANCEL are not defined #21440
Closed
BridgeAR
BridgeAR approved these changes Jun 21, 2018
View reviewed changes
@BridgeAR

BridgeAR commented Jun 21, 2018

Copy link
Copy Markdown
Member

CI https://ci.nodejs.org/job/node-test-pull-request/15553/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jun 21, 2018
jasnell
jasnell approved these changes Jun 21, 2018
View reviewed changes
trivikr
trivikr approved these changes Jun 22, 2018
View reviewed changes
@shisama

shisama commented Jun 22, 2018

Copy link
Copy Markdown
Contributor Author

I think CI failures are unrelated to this.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs nodejs deleted a comment Jun 22, 2018
@ChALkeR ChALkeR added experimental Issues and PRs related to experimental features. errors Issues and PRs related to JavaScript errors originating in Node.js core. labels Jun 24, 2018
@targos

targos commented Jun 24, 2018

Copy link
Copy Markdown
Member

Resumed CI: https://ci.nodejs.org/job/node-test-pull-request/15582/

ChALkeR and shisama reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Jun 24, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This is (one of the issues that are) blocking #21470, so I would prefer this to land soon. 😃
Also issue #21421 was what prompted me to create #21470, thanks for that. 😉

shisama reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apapirovski

apapirovski commented Jun 25, 2018

Copy link
Copy Markdown
Contributor

CI: https://ci.nodejs.org/job/node-test-pull-request/15594/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shisama

shisama commented Jun 30, 2018

Copy link
Copy Markdown
Contributor Author

Thanks to #21498 , we can use lchown() on every platform. I will rebase this pull request and remove test for lchown().

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shisama shisama changed the title fs: fix fsPromises.lchmod and lchown errors on non-Mac fs: fix fsPromises.lchmod errors on non-Mac Jun 30, 2018
@shisama
shisama force-pushed the fix-fs-promises-err-method-not-implemented branch from f66c492 to 5aef2d8 Compare June 30, 2018 12:32
@shisama

shisama commented Jun 30, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@ChALkeR @jasnell @cjihrig @BridgeAR @starkwang @trivikr @targos @apapirovski Now, we can use lchown() on non-macOS platforms thanks to #21498. So, I removed test for lchown(). Please review again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cjihrig

cjihrig commented Jun 30, 2018

Copy link
Copy Markdown
Contributor

Still LGTM. Thanks for updating this.

shisama reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hiroppy
hiroppy approved these changes Jun 30, 2018
View reviewed changes
ChALkeR
ChALkeR approved these changes Jun 30, 2018
View reviewed changes
Masashi Hirano @ChALkeR
fs: fix fsPromises.lchmod error on non-Mac
f54958e
On non-macOS, fsPromises.lchmod throws AssertionError.
Expected behavior is `Error [ERR_METHOD_NOT_IMPLEMENTED]`.
`ERR_METHOD_NOT_IMPLEMENTED()` requires argument, but it wasn't set.

Fixes `ERR_METHOD_NOT_IMPLEMENTED()` to
`ERR_METHOD_NOT_IMPLEMENTED('lchmod()')`.

PR-URL: nodejs#21435
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
@ChALkeR
ChALkeR force-pushed the fix-fs-promises-err-method-not-implemented branch from 5aef2d8 to f54958e Compare July 10, 2018 17:02
@ChALkeR

ChALkeR commented Jul 10, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Looks like no objections. Rebased, commit message updated to exclude mentions of lchown, preparing to land.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Jul 10, 2018

Copy link
Copy Markdown
Member

CI: https://ci.nodejs.org/job/node-test-pull-request/15784/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Jul 10, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Landed in f54958e, thanks all! 🎉

shisama reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR
ChALkeR merged commit f54958e into nodejs:master Jul 10, 2018
targos pushed a commit that referenced this pull request Jul 12, 2018
Masashi Hirano @targos
fs: fix fsPromises.lchmod error on non-Mac
b758006
On non-macOS, fsPromises.lchmod throws AssertionError.
Expected behavior is `Error [ERR_METHOD_NOT_IMPLEMENTED]`.
`ERR_METHOD_NOT_IMPLEMENTED()` requires argument, but it wasn't set.

Fixes `ERR_METHOD_NOT_IMPLEMENTED()` to
`ERR_METHOD_NOT_IMPLEMENTED('lchmod()')`.

PR-URL: #21435
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
@targos targos mentioned this pull request Jul 17, 2018
v10.7.0 proposal #21851
Merged
This was referenced Jul 18, 2018
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#207
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#208
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#209
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#210
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#211
Closed
@coderabbitai coderabbitai Bot mentioned this pull request Aug 21, 2026
fix(worktree-repository): make read-only worktrees removable futsuuu/pi-ui#12
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ChALkeR ChALkeR ChALkeR approved these changes
@jasnell jasnell jasnell approved these changes
@cjihrig cjihrig cjihrig approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
@trivikr trivikr trivikr approved these changes
+2 more reviewers
@hiroppy hiroppy hiroppy approved these changes
@starkwang starkwang starkwang approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. errors Issues and PRs related to JavaScript errors originating in Node.js core. experimental Issues and PRs related to experimental features. fs Issues and PRs related to file-system APIs and the fs module.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

fs: fsPromises.lchmod throws AssertionError on Ubuntu

Uh oh!

There was an error while loading. Please reload this page.

11 participants

@shisama @BridgeAR @targos @ChALkeR @apapirovski @cjihrig @jasnell @hiroppy @starkwang @trivikr @nodejs-github-bot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.