Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use slow move-based fallback for renameatConcurrently #12048

Merged
merged 7 commits into from
Jun 22, 2024

Conversation

zackradisic
Copy link
Contributor

What does this PR do?

This PR fixes bun patch not working when the temp/install dir are not on the same filesystem as the user's project.

This updates the bun.sys.renameatConcurrently function to conditionally fallback to a slow move-based implementation when it hits EXDEV

@zackradisic zackradisic changed the title Use slow move-based fallback on renameatConcurrently Use slow move-based fallback for renameatConcurrently Jun 21, 2024
Copy link
Contributor

github-actions bot commented Jun 21, 2024

@Jarred-Sumner, your commit has failing tests :(

🐧💪 1 failing tests Linux AARCH64

  • test/js/node/fs/promises.test.js 1 failing

🐧🖥 1 failing tests Linux x64 baseline

  • test/js/bun/spawn/spawn.test.ts 1 failing

🪟💻 2 failing tests Windows x64

  • test/cli/install/migration/out-of-sync.test.ts 1 failing
  • test/js/bun/io/bun-write.test.js 1 failing

View logs

src/copy_file.zig Outdated Show resolved Hide resolved
@Jarred-Sumner Jarred-Sumner merged commit d563b64 into main Jun 22, 2024
50 of 53 checks passed
@Jarred-Sumner Jarred-Sumner deleted the zack/patch-exdev branch June 22, 2024 03:41
zackradisic added a commit that referenced this pull request Jun 24, 2024
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
dylan-conway pushed a commit that referenced this pull request Jun 26, 2024
Co-authored-by: zackradisic <zackradisic@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants