oven-sh / bun

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

Failed to move cross-compiled bun binary into cache directory #11198

Open phenomen opened 3 months ago

phenomen commented 3 months ago

What version of Bun is running?

1.1.8

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

bun build ./bin/index.js --compile --target=bun-linux-x64-modern --minify --sourcemap --outfile fvttt

What is the expected behavior?

Linux binary is successfully compiled.

What do you see instead?

ENOENT: Failed to move cross-compiled bun binary into cache directory C:\Users\pheno\.bun\install\cache\bun-linux-x64-v1.1.8
error: script "compile:linux" exited with code 1

image

Additional information

It worked in 1.1.7 (or 1.1.6, not sure).

tiger-luuuu commented 2 months ago

same iusse in 1.1.16

linitsh commented 1 month ago

same 1.1.21 - windows binnary compile ok, linux not. tryed many versions -> ENOENT: Failed to move cross-compiled bun binary into cache directory C:\Users...

linitsh commented 1 month ago

same 1.1.21 - windows binnary compile ok, linux not. tryed many versions -> ENOENT: Failed to move cross-compiled bun binary into cache directory C:\Users...

Okay. Im working on win 11 - hav this error anyway. Im login to wsl by root -> install bun -> and problem gone. On wsl all work nice. But still wait fix :)

Rafatcb commented 3 days ago

Moving the repository from the D: drive to C: worked for me, as stated in https://github.com/oven-sh/bun/discussions/12247#discussioncomment-9911243

After doing this successfully once, I was able to use the repository back on the D: drive.