Enhancement: keep direct dependencies without explicit version pins visible in vg scan graphs

Đang mở
#215 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.

  • #335 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
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
cli, devtools

Hướng nghiên cứu

Start by reading the existing dependency parsers and their fixtures/tests to find a supported ecosystem where unpinned or inherited direct dependencies are already closest to being represented. Add a fixture and test showing that the chosen direct edge remains in deterministic graph/scan output without a fabricated version; check existing conventions for representing absent or inherited versions.

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

Mô tả

enhancement

Context

Some manifests declare direct dependencies without a concrete version pin (workspace inheritance, catalog refs, or omitted version fields). Adjacent analyzers have dropped those edges entirely. For Vibgrate, vg build / vg scan should still record that the direct edge exists — with an honest “unpinned / inherited” representation — so impact and drift stay trustworthy and local-first.

What to do

  1. Pick one supported ecosystem where unpinned/inherited directs already appear (or are closest) — e.g. npm workspace, pnpm catalog, or Cargo workspace — matching what the codebase already parses.
  2. Ensure the graph retains a deterministic node/edge for the direct dependency instead of omitting it.
  3. Human and machine output should not invent a fake version; prefer explicit absence or an inherited marker already used elsewhere.
  4. Add a fixture + test asserting the direct edge survives.

Acceptance

  • Direct unpinned/inherited deps remain visible in graph/scan output for the chosen ecosystem
  • No fabricated version numbers; absent stays absent (not 0 / empty string hacks)
  • Deterministic graph for the fixture
  • DCO sign-off on commits (git commit -s) if the PR touches the repo

Mentoring notes

One ecosystem per PR. Do not boil the ocean across all languages. Align with absent-vs-zero themes (#160) for any numeric/score fields you touch.

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.