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

Aperta
#250 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #331 di @vibgrate-team — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)
Lingua principale
TypeScript
Stelle
4
Fork
3
Merge medio
1g 22h
PR unite (30g)
76

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vibgrate/cli

Tutte le issue di vibgrate/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.