Skip to content

[Bug]: original-fs does not provide unmodified methods #41008

Closed

Description

@erikian

Preflight Checklist

Electron Version

28.1.3

What operating system are you using?

Windows

Operating System Version

Windows 10

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

original-fs should provide unmodified methods from Node.js' fs module

Actual Behavior

original-fs seems to be using our ASAR patches that are meant to be applied only when importing the plain fs module in Electron

Testcase Gist URL

https://gist.github.com/3f029d290d598c9e1d1322c25c48c575

Additional Information

The Fiddle above is just a slight variation of the repro provided by @tangjfn in #40943 / #40960 (thanks for the test case!), where you can enter a path to a folder containing an .asar file and attempt to remove it using fs.promises.rm or fs.promises.rmdir. They both fail with ENOTEMPTY: directory not empty:

image

Activity

  1. added
    status/confirmed
    on Jan 17, 2024
  2. moved this to 👀 Unsorted Items in 28-x-yon Jan 17, 2024
  3. moved this to 👀 Unsorted Items in 29-x-yon Jan 17, 2024
  4. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 29-x-yon Jan 17, 2024
  5. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 28-x-yon Jan 17, 2024
  6. codebytere commented on Jan 31, 2024

    @codebytere
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

28-x-y29-x-ybug 🪲component/node-integrationstatus/confirmed

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions