oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.16k stars 2.77k forks source link

Bun patch errors in monorepo (failed renaming patch file to patches dir EPERM: Operation not permitted (copyfile())) #12200

Open kravetsone opened 4 months ago

kravetsone commented 4 months ago

What version of Bun is running?

1.1.17+bb66bba1b and 1.1.17-canary.1+96e84b276

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

I'm using monorepo and I want to patch Elysia (because of https://github.com/elysiajs/elysia/pull/696 )

When I try to use bun patch on Windows I get this error

PS Z:\PROJECTS\node-ts\elycart-monorepo\packages\server> bun patch --commit elysia@1.0.25
bun patch v1.1.17 (bb66bba1)
error: failed renaming patch file to patches dir EPERM: Operation not permitted (copyfile())

When i try to switch to WSL i get the same error as https://github.com/oven-sh/bun/issues/12103#issuecomment-2185684103

kravets@KravetsBook:/mnt/z/PROJECTS/node-ts/elycart-monorepo/packages/server$ bun patch elysia@1.0.25
bun patch v1.1.17 (bb66bba1)

1 package installed [7.86s]
error: error overwriting folder in node_modules: FileNotFound

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

ajohn25 commented 3 months ago

Also running into the WSL variant of this

winston0410 commented 3 months ago

running into this, even using 1.1.20.

whistlecube commented 2 months ago

getting this on mac as well, using 1.1.24

NikitaKA commented 2 months ago

Still in 1.1.26 (Windows)

whistlecube commented 2 months ago

Possibly related to this issue, still present in latest version

alex-demchenko commented 3 weeks ago

still in 1.1.29