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

未关闭
#215 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

  • #335 来自 @vibgrate-team —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
领域
cli, devtools

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
4
派生
3
平均合并
1 天 22 小时
30 天内合并 PR
76

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

vibgrate/cli 的其他 Issue

查看 vibgrate/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。