Skip to content

worktree/host: rc_output_roots keeps relative --output_user_root values - #6421

Merged
TrapsterDK merged 1 commit into
mainfrom
fix-6209-rc-relative-output-root
Nov 4, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
fix-6209-rc-relative-output-root

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Closes #6209

Change

  • rc_output_roots (cli/worktree/src/host.rs) joins a relative startup --output_user_root= value to the workspace instead of skipping it. Absolute values are unchanged (Path::join keeps them). The dedupe check stays.
  • Test: rc_output_roots_join_relative_startup_roots_to_the_workspace covers bare and quoted relative roots. The relative rel line is removed from rc_output_roots_read_startup_lines_and_imports because it now resolves to the workspace.

Checks

  • tools/dx check --apply //cli/worktree/...: pass.
  • tools/dx test //cli/worktree:dx_worktree_test: 1 passed, 0 failed.
  • Not run: nested-Bazel or *_consumer_test targets (CI runs them). No macOS/Windows run; the change is platform-independent.

Remaining

  • The issue suggests reusing the dx_process root resolution so the two crates cannot disagree. Not done here; this change keeps the same workspace.join rule, so they agree today.

🤖 Generated with Claude Code

Assisted by Claude.

…es (closes #6209)

A relative `startup --output_user_root=` in a bazelrc is resolved against
the workspace by Bazel and by dx_process. rc_output_roots dropped it
because of the is_absolute check, so reclaim_host_wide did not scan it.
Join relative roots to the workspace instead; absolute roots are
unchanged because Path::join keeps them as they are.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011u9TXHDZrfmzFQ2WT8QAKK
@TrapsterDK
TrapsterDK merged commit 6da19dc into main Nov 4, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the fix-6209-rc-relative-output-root branch November 4, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

worktree/host: rc_output_roots keeps relative --output_user_root values

1 participant