aboutcode-org / aboutcode-org/scancode.io

Definitions for `DiscoveredPackage` and `DiscoverdDependency` are very different

未关闭
#885 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
215
派生
203
平均合并
4 天 8 小时
30 天内合并 PR
6

描述

Minor nitpick:
`DiscoveredPackage` used `uuid` field
https://github.com/nexB/scancode.io/blob/5f2cbae33c1ac7fa843fb4bddf9ab3f62fc831b2/scanpipe/models.py#L2534-L2536

`DiscoveredDependency` uses a `CharField`
https://github.com/nexB/scancode.io/blob/5f2cbae33c1ac7fa843fb4bddf9ab3f62fc831b2/scanpipe/models.py#L2837-L2840

---
We need to discuss the distinction between a `Package` and a `Dependency`.
1. When is a dependency not a package ?
2. All all packages dependency of the project being scanned currently
3. CycloneDX schema's [dependencies](https://cyclonedx.org/docs/1.5/json/#dependencies) are only a mapping from a component to a component, should we opt for a similar approach ?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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