You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dcf575e
Browse filesBrowse the repository at this point in the historyBrowse files
* Start #1832: one cargo config chain
Assisted-by: Claude Code:claude-opus-5-5
* Read cargo config files via config_layer_paths
The build-cache cleaner walked the .cargo/config chain itself and
preferred config.toml when both config and config.toml existed. Cargo
reads the extensionless file, so the cleaner removed fingerprints from
a target dir cargo never used. ConfigDirs::read now takes its file list
from source_replacement::config_layer_paths, which the source
replacement reader already uses, and keeps only the [build] lookup. It
also stops reading $CARGO_HOME twice when an ancestor's .cargo is it.
Fixes#1832
Assisted-by: Claude Code:claude-opus-5-5
* Resolve a relative cwd before the cargo walks
build_dirs walked the ancestors of the cwd as given, and --cwd defaults
to ".", whose ancestors stop at ".". Run from a workspace member, the
cleaner found neither the workspace root nor a parent .cargo/config, so
it invalidated no build dir at all. It now walks the absolute path.
The config file probe also consults the open group commit, as the
read that follows it does, so the two agree on captured files.
Assisted-by: Claude Code:claude-opus-5-5
* Fold .. out of the cwd before the cargo walks
std::path::absolute keeps .., so --cwd ../app walked the ancestors of
the directory being left and could take its build-dir. Fold the
absolute cwd lexically, as cargo_crawler::resolve_for does.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments