Skip to content

fix(readers): support windows-style exclude patterns#710

Merged
abhisek merged 1 commit into
safedep:mainfrom
Carla232:issue-628-windows-exclude
Apr 20, 2026
Merged

fix(readers): support windows-style exclude patterns#710
abhisek merged 1 commit into
safedep:mainfrom
Carla232:issue-628-windows-exclude

Conversation

@Carla232

Copy link
Copy Markdown
Contributor

Fixes #628

Summary

  • normalize path separators (\\ and /) before applying exclusion glob matching
  • keep absolute/relative matching behavior while normalizing both pattern and term
  • add tests for Windows-style exclude patterns, including matching against absolute paths

Why

--exclude 'pkg\\*' did not behave correctly on Windows because matching logic mixed path separators.

Notes

  • commit is signed off (-s) as required by CONTRIBUTING.md
  • local go test ./pkg/readers was blocked in this environment by an external file-lock on Go module cache; no code-level test failure was observed

Signed-off-by: gigel <gigel@users.noreply.github.com>
@safedep

safedep Bot commented Apr 18, 2026

Copy link
Copy Markdown

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

View complete scan results →

This report is generated by SafeDep Github App

@abhisek abhisek merged commit 787faa6 into safedep:main Apr 20, 2026
14 checks passed
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.

Exclude command not working in windows.

3 participants