Skip to content

Can't create new dependency patch using linker = "isolated" #21212

@i-love-neko-girls

Description

@i-love-neko-girls

What version of Bun is running?

1.2.19+aad3abead

What platform is your computer?

Darwin 24.0.0 arm64 arm

What steps can reproduce the bug?

  1. install any dependency with --linker=isolated
  2. try to patch it

What is the expected behavior?

works as intended

What do you see instead?

➜ bun patch example
bun patch v1.2.19 (aad3abea)

4 packages installed [50.00ms]

To patch example, edit the following folder:

  node_modules/example

Once you're done with your changes, run:

  bun patch --commit 'node_modules/example'

➜ bun patch --commit 'node_modules/example'
bun patch v1.2.19 (aad3abea)
error: failed to parse patchfile: bad_file_mode
error: failed to apply patchfile (patches/[email protected])

Checked 177 installs across 189 packages (no changes) [31.00ms]

➜ bun patch example
bun patch v1.2.19 (aad3abea)
error: failed to parse patchfile: bad_file_mode
error: failed to apply patchfile (patches/[email protected])

Checked 177 installs across 189 packages (no changes) [14.00ms]
error: error overwriting folder in node_modules: FileNotFound

Additional information

existing patches seems to work

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbun installSomething that relates to the npm-compatible client

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions