bumblebee
bumblebee copied to clipboard
Windows package records should preserve native project paths
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
Thanks. I’m going to fold this into the broader Windows support track so path normalization is handled with the experimental Windows baseline rather than separately.