Problem
Some package scanners derive project_path by slash-normalizing filesystem paths and joining path segments with /. That works for Unix-shaped paths, but on Windows it can emit non-native project paths and makes tests assume slash-only source paths.
Proposed change
- Convert slash-normalized npm and pnpm project paths back to native filesystem form before emitting records.
- Make scanner assertions path-separator portable.
- Keep package identity, source type, and source file behavior unchanged.
Verification
go test ./internal/ecosystem/npm ./internal/ecosystem/pnpm ./internal/scanner
Problem
Some package scanners derive
project_pathby slash-normalizing filesystem paths and joining path segments with/. That works for Unix-shaped paths, but on Windows it can emit non-native project paths and makes tests assume slash-only source paths.Proposed change
Verification
go test ./internal/ecosystem/npm ./internal/ecosystem/pnpm ./internal/scanner