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

Aperta
#5,482 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@keshav-space ci sta già lavorando.

Dal 13/11/2026.

  • #5487 di @Raman-Katiyar — aperta
  • #5488 di @sujalgiriiitp-source — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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": [],
...
}
Lingua principale
Python
Stelle
2.7k
Fork
871
Merge medio
1g 10h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aboutcode-org/scancode-toolkit

Tutte le issue di aboutcode-org/scancode-toolkit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.