Repository navigation
Remove get_fd_path: derive paths from cwd and what was opened, not from fds #38365
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
Open
dylan-conway
wants to merge
49
commits into
main
Choose a base branch
from
claude/getfdpath-refactor-investigation-6c1434
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,079
−2,393
Open
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
bafe7ba
install: stop recovering paths from file descriptors
dylan-conway c50dba4
resolver/bundler/router: derive canonical paths from the resolver, no…
dylan-conway 3962a5d
runtime: replace fd->path with realpath(known path) or the path itself
dylan-conway 15d7d26
resolver: resolve symlinked entries with a readlink walk from the rea…
dylan-conway 72e58d9
sys: delete get_fd_path and the Windows *at emulations built on it
dylan-conway c0ee03c
test: ratchet dead-code escape inventory for src/patch/lib.rs
dylan-conway be8beeb
[autofix.ci] apply automated fixes
autofix-ci[bot] fa04562
sys: keep realpath O(1) on macOS via F_GETPATH; use it for the resolv…
dylan-conway 1f172e6
Fix Windows output paths, fstatat error tag, and drop three syscalls
dylan-conway d691474
resolver: clear a re-statted entry's cached realpath
dylan-conway c799338
resolver: keep the SAFETY comment adjacent to its unsafe block
dylan-conway 24a315c
One getcwd, then joins: entry point, bun link, and lifecycle cwd with…
dylan-conway a78a870
resolver: --preserve-symlinks applies to symlinked files, not just di…
dylan-conway 12c5b01
install: resolve relative workspace links from the real node_modules …
dylan-conway f8d895f
process.argv[1]: keep the as-given entry path when running as `node`
dylan-conway d26af83
[autofix.ci] apply automated fixes
autofix-ci[bot] c8c08e5
resolver walk: apply `..` to the resolved prefix; don't flip resolver…
dylan-conway e1cf41a
Merge remote-tracking branch 'origin/claude/getfdpath-refactor-invest…
dylan-conway be02e5b
fs.watch: report EACCES up front on kqueue/FSEvents platforms
dylan-conway bb92a93
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
dylan-conway e9c6d99
resolver walk: no doubled separator after the root
dylan-conway c90b5b0
resolver walk: one separator before each consumed component
dylan-conway cce572e
Address review: accessor basename case, cp symlink NUL, realpath fall…
dylan-conway c36f89c
[autofix.ci] apply automated fixes
autofix-ci[bot] 1f2d154
Windows fs.cp of a symlink: UNC-aware path round trip, no silent rela…
dylan-conway e47bc15
Merge remote-tracking branch 'origin/claude/getfdpath-refactor-invest…
dylan-conway a9c98cd
paths: drop a redundant full-range slice (clippy)
dylan-conway 47a3196
Remove the unused BUN_NEEDS_PROC_SELF_WORKAROUND env var declaration
dylan-conway f411f9c
pm cache rm: don't print "Cleared" after the delete failed
dylan-conway b24f693
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
dylan-conway 9554dd4
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 67589e0
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 3603088
pack: print the full path of an unreadable ignore file
robobun 9bde958
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 90f1df8
hot: cover a symlinked entrypoint surviving a directory invalidation
robobun 7597aef
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 1716a5e
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 5fc0c99
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun f764ef0
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 66d351f
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 448eeec
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 6725f95
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun bf0e77f
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 9f820dd
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 5be3953
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 54f22a5
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun 43e781b
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun b8e2ac6
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun e9bb458
Merge remote-tracking branch 'origin/main' into claude/getfdpath-refa…
robobun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Performance & Scalability | 🔵 Trivial | 💤 Low value
Use the path-buffer pool for this buffer.
PathBuffer::uninit()puts aMAX_PATH_BYTESbuffer on the stack inside the per-chunk loop. Usebun_paths::path_buffer_pool::get()instead, as the neighbouring resolver and installer code does.As per coding guidelines: "Use
bun_pathshelpers instead ofstd::pathfor runtime path joining, normalization,parent, andfile_name; use the path-buffer pool for large path buffers".♻️ Proposed change
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines