Support scancode-toolkit v32.3.0 output format changes

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

@prakhardixit9793 已经在做这个了。

开始于 2026年10月30日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
desktop

调研方向

首先将 ScanCode Toolkit v32.3.0 的 JSON 输出与数据导入和 Package Explorer 视图进行比较。跟踪依赖项字段,尤其是重命名后的 is_pinned 属性,并验证导入的值是否能够正确加载和显示;检查是否还需要处理 license-match 的重命名。

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

描述

good first issue
Description

Please leave a brief discription of the bug or feature request:

See the output format changes in https://github.com/aboutcode-org/scancode-toolkit/releases/tag/v32.3.0
scancode-workbench needs to support the attirbute updates.

Changes in Output Data Structure:
The data structure of the JSON output has changed for: - dependencies at file level package_data, and at top-level. - license matches at file level or unique codebase level license detections Note that the change is a modification to the JSON output, so we have a major version bump 3.2.0 to 4.0.0:
Dependency attribute is_resolved renamed to is_pinned
LicenseMatch attribute spdx_license_expression renamed to license_expression_spdx

These updates are not causing any issues atm, the scan loads allright and does not show any errors/warnings.
But we need to update the Package Explorer view and the data imports to correctly load and display the info. Currently is_resolved is always shown as NULL. The license match table doesn't seem to be affected (?)

System configuration

For bug reports, it really helps us to know:

  • What OS are you running on? (Windows/MacOS/Linux) any
  • What version of scancode-workbench are you running on? 4.0.3
  • What version of scancode-toolkit was used to generate the scan file? v32.3.0
主要语言
TypeScript
星标
174
派生
81
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

aboutcode-org/scancode-workbench 的其他 Issue

查看 aboutcode-org/scancode-workbench 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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