[Bug] Running scan on Dart package does not return any packages or dependencies

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

维护者通常 2 天内回复

@keshav-space 已经在做这个了。

开始于 2026年11月13日。

  • #5487 来自 @Raman-Katiyar —— 未关闭
  • #5488 来自 @sujalgiriiitp-source —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

bug
Description

Seems like we have parser for pubspec.yml and pubspec.lock here https://github.com/aboutcode-org/scancode-toolkit/blob/develop/src/packagedcode/pubspec.py but we're not getting any packages in scan result.

How To Reproduce

Download https://pub.dev/api/archives/json_serializable-6.15.2.tar.gz and run:

tar -xzf json_serializable-6.15.2.tar.gz --one-top-level
scancode -clpeui -n 2 --json-pp dart.json json_serializable-6.15.2/

Below is snippet of scan result with empty packages and dependencies.

{
  "headers": [
    {
      "tool_name": "scancode-toolkit",
      "tool_version": "33.0.0rc1",
      "options": {
        "input": [
          "json_serializable-6.15.2/"
        ],
        "--copyright": true,
        "--email": true,
        "--info": true,
        "--json-pp": "dart.json",
        "--license": true,
        "--package": true,
        "--processes": "2",
        "--url": true
      },
      "notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
      "start_timestamp": "2026-11-13T123542.715517",
      "end_timestamp": "2026-11-13T123606.762140",
      "output_format_version": "4.1.0",
      "duration": 24.04663896560669,
      "message": null,
      "errors": [],
      "warnings": [],
      "extra_data": {
        "system_environment": {
          "operating_system": "linux",
          "cpu_architecture": "64",
          "platform": "Linux-6.8.0-138-generic-x86_64-with-glibc2.35",
          "platform_version": "#138~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug  7 13:43:15 UTC ",
          "python_version": "3.10.13 (main, Mar  5 2024, 10:45:04) [GCC 11.4.0]"
        },
        "spdx_license_list_version": "3.28",
        "files_count": 150
      }
    }
  ],
  "packages": [],
  "dependencies": [],
...
}
主要语言
Python
星标
2.7k
派生
871
平均合并
1 天 10 小时
30 天内合并 PR
3

环境准备

从这里开始

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

aboutcode-org/scancode-toolkit 的其他 Issue

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

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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