Skip to content

fix(scan): normalize Windows relative target paths - #1734

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/normalize-relative-scan-paths
Nov 18, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/normalize-relative-scan-paths

Conversation

@jdalton

Copy link
Copy Markdown
Contributor

Windows-style relative scan targets now match package files. Convert backslashes to forward slashes before building fast-glob patterns and trim trailing separators.\n\nVerified with:\n- pnpm run test:unit src/utils/path-resolve.test.mts\n- pnpm run check:tsc

@cursor

cursor Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Small path-normalization change in scan input handling with a focused unit test; no auth, security, or data-path changes.

Overview
Fixes package discovery when scan targets use Windows-style relative paths (e.g. .\\Kernel\\).

normalizeScanInputPath now backslash-to-forward-slash normalization and trailing-slash trimming for relative inputs, aligning them with the cwd-relative coordinate system used by fast-glob and additionalIgnores. Absolute paths inside cwd already got this treatment; relative paths previously passed through unchanged.

Adds a unit test asserting .\\Kernel\\ resolves the same package files as a normalized subdirectory path.

Reviewed by Cursor Bugbot for commit a5fc184. Configure here.

@jdalton

Copy link
Copy Markdown
Contributor Author

Cursor (@cursor) review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit a5fc184. Configure here.

@jdalton
John-David Dalton (jdalton) force-pushed the fix/normalize-relative-scan-paths branch from a5fc184 to 7720599 Compare November 18, 2026 01:42
@jdalton
John-David Dalton (jdalton) merged commit 7578a27 into v1.x Nov 18, 2026
23 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/normalize-relative-scan-paths branch November 18, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants