Skip to content

Windows package records should preserve native project paths #1

@austinconnor

Description

@austinconnor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions