Skip to content

fix: original-fs import replacement - #41209

Merged
codebytere merged 1 commit into
mainfrom
fix-original-fs-imports
Feb 5, 2024
Merged

codebytere merged 1 commit into
mainfrom
fix-original-fs-imports

Conversation

@codebytere

Copy link
Copy Markdown
Member

Description of Change

Closes #41008.
Refs #40545.

Fixes an issue where original-fs methods were not properly corrected for patched imports. This broke in #40545 but wasn't exposed until ac031bf. Fix this by correctly swapping out require('fs/*') calls in original-fs with require('original-fs/*').

Checklist

Release Notes

Notes: Fixes an issue where original-fs methods were not properly corrected for patched imports.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/29-x-y PR should also be added to the "29-x-y" branch. labels Feb 1, 2024
@codebytere
codebytere requested a review from a team as a code owner February 1, 2024 11:29
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Feb 1, 2024
@codebytere codebytere added the target/28-x-y PR should also be added to the "28-x-y" branch. label Feb 1, 2024
Comment thread spec/asar-spec.ts Resolved
@VerteDinde

Copy link
Copy Markdown
Member

I think the Linux tests are failing on the nut.js import - a rebase against main should fix it

@codebytere
codebytere force-pushed the fix-original-fs-imports branch from 8f4f27f to d5a8f3b Compare February 2, 2024 09:42
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Feb 2, 2024
@codebytere

Copy link
Copy Markdown
Member Author

reporting api sends a report for an intervention

is unrelated and flaky.

@codebytere
codebytere merged commit 5dfa9e3 into main Feb 5, 2024
@codebytere
codebytere deleted the fix-original-fs-imports branch February 5, 2024 08:51
@release-clerk

release-clerk Bot commented Feb 5, 2024

Copy link
Copy Markdown

Release Notes Persisted

Fixes an issue where original-fs methods were not properly corrected for patched imports.

@trop

trop Bot commented Feb 5, 2024

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "28-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/28-x-y and removed target/28-x-y PR should also be added to the "28-x-y" branch. labels Feb 5, 2024
@trop

trop Bot commented Feb 5, 2024

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "29-x-y", please check out #41238

@trop trop Bot added in-flight/29-x-y merged/29-x-y PR was merged to the "29-x-y" branch. and removed target/29-x-y PR should also be added to the "29-x-y" branch. in-flight/29-x-y labels Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/29-x-y PR was merged to the "29-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants