Skip to content

plan/changed: read backslash local_path_override paths (closes #6212) - #6430

Merged
TrapsterDK merged 1 commit into
mainfrom
fix/6212-windows-override-backslash
Nov 4, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
fix/6212-windows-override-backslash

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Closes #6212

local_override_changes split override paths on / only. A MODULE.bazel on Windows with path = "..\\lib" was dropped by the .. filter, so an affected-scoped run selected nothing that depends on that override.

The fix normalizes \ to / on each override path before the .. filter and the repo-relative resolution. The Path::is_absolute check still runs on the original string.

Added override_changes_read_backslash_override_paths_like_slash_paths, which asserts the same roots, pathspecs and changed files as ../lib.

Checks:

  • tools/dx check --apply //cli/plan/...: passed. This also reformatted unrelated files, which I reverted, so the diff is only cli/plan/src/resolve/changed.rs.
  • tools/dx test //cli/plan:dx_plan_test: 1 of 1 passed.

Not run:

  • Nested-Bazel and *_consumer_test targets were not run locally (CI runs them).
  • Not run on a real Windows host. The fix is string-based and is covered by the Linux unit test, but a Windows checkout with a real ..\lib override has not been exercised.

Assisted by Claude.

🤖 Generated with Claude Code

On Windows, MODULE.bazel can say path = "..\\lib". The override filter
split only on '/', so the outside-repo override was dropped and an
affected-scoped run selected nothing that depends on it. Normalize
backslashes to '/' before the '..' filter and the repo-relative
resolution. Absolute paths are still skipped on the original string.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011u9TXHDZrfmzFQ2WT8QAKK
@TrapsterDK
TrapsterDK merged commit e0750a1 into main Nov 4, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the fix/6212-windows-override-backslash branch November 4, 2026 19:50
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.

plan/changed: local_path_override paths with backslashes are detected as outside overrides

1 participant