BUG: SBOM import fails with "The 'for_package' cannot be the same as 'resolved_to_package'" and duplicates number of dependencies
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
issue で参照されている load_sbom パイプラインと create_dependecies の処理から始め、再現可能な入力が利用可能になったら最小限の SBOM を使用します。インポートされた依存関係がどのように解決され、永続化されるかを追跡し、その後、自己参照関係が適切に拒否され、インポートを繰り返しても重複した依存関係エントリが作成されないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When importing a particular SBOM created with cdxgen, the load_sbom pipeline succeeds according to ScanCode.io, but DejaCode reports issues importing the dependencies. The error message states: The 'for_package' cannot be the same as 'resolved_to_package'
Repeating the SBOM import causes an additional issue. DejaCode duplicates the number of dependencies, apparently not realizing that these are the same dependencies that have been previously added.
Note: This is the same SBOM as https://github.com/aboutcode-org/scancode.io/issues/1576 where ScanCode reported issues with create_dependecies but the overall pipeline is considered a success.
To Reproduce
Not clear yet. Cannot share actual data at the moment. I will see if an MWE can be provided.
If the error provides indication what I should look out for in the SBOM, I might be able to find it quicker.
Expected behavior
The SBOM should be properly loaded and no duplicate dependency entries should be added
Screenshots
Context (OS, Browser, Device, etc.):
n.a.
- 主要言語
- Python
- スター
- 52
- フォーク
- 30
- 平均マージ
- 4時間 57分
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/dejacode のほかの issue
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
aboutcode-org/dejacode#606 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
aboutcode-org/dejacode#603 ·
メンテナーはふだん 1 日以内に返信
-
design needed enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
aboutcode-org/dejacode#561 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Enhancement request: Refine License Category - Copyleft Limited再び着手できるかも @hesa が 118 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンdesign needed enhancement
aboutcode-org/dejacode#499 · コメント 13 件 · 担当者 3 名 ·
メンテナーはふだん 1 日以内に返信
-
BUG: Product overview page splits product with many versions across pages再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug design needed enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
aboutcode-org/dejacode#460 ·
メンテナーはふだん 1 日以内に返信
aboutcode-org/dejacode の issue をすべて見る
似ている issue
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ramnes/notion-sdk-py#433 ·
-
docs pkg:core
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
pydantic/pydantic-ai#11929 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
intake/intake-esm#789 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MemMachine/MemMachine#1877 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openedx/openedx-authz#579 ·
メンテナーはふだん 1 日以内に返信