Skip to content

Comments

fix(cli): Normalize path separators in synthetic file changes#217

Merged
dcramer merged 1 commit intomainfrom
warden-sweep/cd745cc3/8ed759ef
Feb 23, 2026
Merged

fix(cli): Normalize path separators in synthetic file changes#217
dcramer merged 1 commit intomainfrom
warden-sweep/cd745cc3/8ed759ef

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Feb 23, 2026

Wraps relative() with normalizePath() in createSyntheticFileChange, consistent with all other path handling in the same file.

On Windows, relative() returns backslash paths that would never match matchGlob's forward-slash regex patterns, causing schedule triggers to silently analyze zero files.

Automated fix for Warden finding find-warden-bugs-8ed759ef (high, detected by find-warden-bugs).

Ref #212

This PR was auto-generated by a Warden Sweep (run cd745cc3).
The finding has been validated through automated deep tracing,
but human confirmation is requested as this is batch work.

createSyntheticFileChange used relative() without normalizePath(),
producing backslash paths on Windows that would never match
matchGlob's forward-slash regex patterns.

Warden finding find-warden-bugs-8ed759ef
Severity: high

Co-Authored-By: Warden <noreply@getsentry.com>
@dcramer dcramer force-pushed the warden-sweep/cd745cc3/8ed759ef branch from bb8956c to af904c1 Compare February 23, 2026 07:17
@dcramer dcramer marked this pull request as ready for review February 23, 2026 07:23
@dcramer dcramer merged commit 7fa600f into main Feb 23, 2026
12 checks passed
@dcramer dcramer deleted the warden-sweep/cd745cc3/8ed759ef branch February 23, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

warden Automated fix from Warden Sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant