Skip to content

paths: terminate recursive mkdir walk when a confirmed parent still yields ENOENT - #36162

Open
robobun wants to merge 13 commits into
mainfrom
farm/ea7dbce8/fix-makepath-spin
Open

paths: terminate recursive mkdir walk when a confirmed parent still yields ENOENT#36162
robobun wants to merge 13 commits into
mainfrom
farm/ea7dbce8/fix-makepath-spin

doc: list --cache-dir among is_explicit sources

2c2c34b
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Jul 28, 2026 in 14m 10s

Code review found 1 potential issue

Found 3 candidates, confirmed 1. See review comments for details.

Details

Severity Count
🔴 Important 0
🟡 Nit 1
🟣 Pre-existing 0
Severity File:Line Issue
🟡 Nit src/install/PackageManager/PackageManagerDirectories.rs:339-340 ensure_cache_directory # Safety doc omits newly-read options.log_level

Annotations

Check warning on line 340 in src/install/PackageManager/PackageManagerDirectories.rs

See this annotation in the file changed.

@claude claude / Claude Code Review

ensure_cache_directory # Safety doc omits newly-read options.log_level

Nit: the fn-level `# Safety` doc on `ensure_cache_directory` enumerates the exact `options` sub-fields projected ("only `options.enable`, `options.cache_directory` (read), `env`, and `cache_directory_path` are touched"), but 5456aa19 added a read of `(*this).options.log_level` here whose inline SAFETY comment says "see fn safety contract" — pointing at a contract that doesn't list `log_level`. Practically harmless (line 324 already takes `&(*this).options` as a whole shared borrow, so no caller