Bug: surface actionable errors when component PURL encoding fails (no silent omit)

Đang mở
#250 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

  • #331 của @vibgrate-team — đã đóng, không merge

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
cli

Hướng nghiên cứu

Start with the vg sbom and vg scan entry points and trace where resolved components are converted to PURLs and omitted on failure. Add a fixture with a pathological package name or path and cover the failure in a test. Done means diagnostics are deterministic, name the package or path, appear in human and machine-readable output, and the chosen handling of the component is documented.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Context

SBOM / scan pipelines elsewhere have failed or dropped components when package names or paths contain non-ASCII or otherwise invalid PURL characters. Vibgrate should stay local-first and deterministic: never silently omit a component when PURL construction fails.

What to do

  • When vg sbom / vg scan cannot build a valid PURL for a resolved component, emit an actionable error or structured warning (what failed, which package/path, what to do) instead of dropping the row with no trace.
  • Prefer keeping the component in the inventory with a clear “purl unavailable” marker over deleting it, if that matches existing output contracts — document the choice.
  • Add a small fixture with a pathological name/path that exercises the path.

Acceptance

  • Failure mode is visible in human and machine-readable output (no silent omit)
  • Message names the package/path and suggests a next step (no secrets)
  • Deterministic: same tree → same diagnostics
  • Test/fixture covers at least one encoding failure
  • DCO sign-off (git commit -s)
Ngôn ngữ chính
TypeScript
Star
4
Fork
3
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
76

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vibgrate/cli

Tất cả issue của vibgrate/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.