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

オープン
#5,482 コメント 0 件 リアクション 0 件 担当者 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時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aboutcode-org/scancode-toolkit のほかの issue

aboutcode-org/scancode-toolkit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。