Repository navigation
fix: add --backend=copyfile flag to bun add command - #4674
Closed
junmediatek wants to merge 1 commit into
Closed
junmediatek wants to merge 1 commit into
junmediatek wants to merge 1 commit into
Conversation
Use copyfile backend for bun add operations to improve compatibility and avoid potential issues with hardlink-based backends.
|
hmmmm this sounds like a bug in bun? we're supposed to automatically fallback to copyfile when hardlink fails. |
Contributor
Author
|
Contributor
Author
|
@rekram1-node |
|
|
||
| // Build command arguments | ||
| const args = ["add", "--force", "--exact", "--cwd", Global.Path.cache, pkg + "@" + version] | ||
| const args = ["add", "--force", "--exact", "--backend=copyfile", "--cwd", Global.Path.cache, pkg + "@" + version] |
Collaborator
There was a problem hiding this comment.
This hardcodes bun installs to use the slowest possible method, we don't want to do that
Collaborator
There was a problem hiding this comment.
I think Jarred was saying that this should be done as a fallback by default anyways so if that isn't happening then there is a bug in bun
github-actions
Bot
force-pushed
the
dev
branch
from
November 27, 2025 01:29
f8ee907 to
6a9856d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use copyfile backend for bun add operations to improve compatibility and avoid potential issues with hardlink-based backends.