bumblebee icon indicating copy to clipboard operation
bumblebee copied to clipboard

Windows package records should preserve native project paths

Open konardev opened this issue 6 months ago • 1 comments

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

konardev avatar May 22 '26 18:05 konardev

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.

adel-pplx avatar May 26 '26 14:05 adel-pplx