Skip to content

This change normalizes filesystem event paths before comparing them with the configured watch sources - #2999

Open
SillyZir wants to merge 1 commit into
go-task:mainfrom
SillyZir:auto-fix/2862
Open

This change normalizes filesystem event paths before comparing them with the configured watch sources#2999
SillyZir wants to merge 1 commit into
go-task:mainfrom
SillyZir:auto-fix/2862

Conversation

@SillyZir

@SillyZir SillyZir commented Aug 26, 2026

Copy link
Copy Markdown

Description

This change normalizes filesystem event paths before comparing them with the configured watch sources.

On Windows, filesystem event paths can use path separators that differ from the slash-separated paths used by the configured sources. The change applies filepath.ToSlash to the event path so the comparison uses a consistent representation.

The package tests pass in the pipeline environment.

The relevant verification environment was macOS, so this PR does not independently reproduce the reported Windows behavior. In particular, the implementation assumes the collected source paths are already represented with slash separators on Windows.

This PR addresses the path-normalization behavior described in #2862.

The code change in this PR was generated with the assistance of an engineering system I created, which I reviewed, understood, and validated.

Checklist

  • I have read and followed the Contribution Guide.
  • I have disclosed the use of any AI-generated content in this pull request per the AI Usage Policy.
  • I fully understand the changes and have hand-written the description (No AI) of this pull request.

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.

1 participant