Repository navigation
docs: preserve configured Cargo cache during recovery builds - #4548
Conversation
|
Word at 0a4f158: approve. |
|
Approved at 0a4f158 (Cormac), docs only. Two follow-ups, one in this PR and one for a card:
|
|
Source review at 85d0fa0: the shell and PowerShell examples preserve a nonempty CARGO_TARGET_DIR, addressing the duplicated-cache failure on machines with a configured secondary volume. No blocker for that scoped correction. Please integrate against current canary before merge. Wording should distinguish an environment variable from Cargo's effective configured target directory: an unset environment variable does not imply Cargo has no target-dir configuration. The claim that omitting the export always creates a ghost target is too broad. Existing machine-specific configuration must also be respected. No build or deployment is needed to establish the narrow environment-preservation behavior. |
# Conflicts: # AGENTS.md # CLAUDE.md
The build instructions unconditionally overwrite CARGO_TARGET_DIR with the home-directory default. On Windows the configured deployment cache is on D:, so following those instructions created a separate C: cache and forced expensive recovery recompilation.
Preserve a configured target directory and use the home default only when unset. Include both Bash and PowerShell forms, and explain why the effective environment must be read before a build. Documentation only; diff check passed. This does not move or delete caches or change the in-flight recovery build.