The root of the problem is the root: How to get a root at all times in a codebase (or no root at all)
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
ソースファイルやテストは指定されていません。まず Codebase クラスと、ScanCode TK --from-json および --strip-root の動作を確認します。virtual_root の扱いとパスの順序も含めて確認してください。POSIX、Windows、サブセット、プロジェクト間での利用におけるルートのセマンティクスを解決した、合意済みで文書化された仕様が完成すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The root problem is this:
- ScanCode TK demands a single root named Resource in a Codebase
- ScanCode TK creates a fake "virtual_root" name if there is no common root in several scans (--from-json /VirtualCodebases)
- ScanCode.io does not have a single root for a project (or rather it has one which might be the "codebase" directory, but never reports it.
- on Windows there is no single root: each "drive" is its own root.
- on POSIX, there is a single root, but it has no name: this is name only "/" and it can have files and directories as children
- ScanCode TK and CommonCode generally ignore or even strip a leading slash therefore making the POSIX root moot
- When you "--strip-root" in ScanCode TK (leaving aside the possible loss of data attached to a root dir) it is potentially problematic to further read this with --from-json because we have no root anymore.
- Scanning a subset of paths or a collections of path in ScanCode is problematic because of this need for root
- The Codebase classes expect some sort order when creating Resources which may not make sense in all cases and may be overly restrictive as we cannot predict this sort order at all times
- Somethings are not entirely clear:
- what is the different between a Codebase and a root Resource?
- why could a Codebase not be just a collection of paths? And why do we even need a root?
We need to define a clean and well spec way to handle this across all projects
- 主要言語
- Python
- スター
- 4
- フォーク
- 25
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/commoncode のほかの issue
-
Consider that Resource.parent can be None when removing resources from the codebase対応中かも @Mirochill が 177 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
aboutcode-org/commoncode#84 ·
-
Click 8.5.0: omitted boolean flags incorrectly trigger conflicting_options validation対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
aboutcode-org/commoncode#112 ·
-
Revisit cliutils.pyオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
aboutcode-org/commoncode#102 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
aboutcode-org/commoncode#101 · コメント 1 件 ·
-
mass-scan: Create library to collect a whole project version from Software Heritage再び着手できるかも @chinyeungli が 264 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
aboutcode-org/commoncode#77 · コメント 7 件 · 担当者 1 名 ·
aboutcode-org/commoncode の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mohanraj00/entelos#200 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
sweep
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
bketelsen/truenas-mcp#77 ·
メンテナーはふだん 1 日以内に返信
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
sandbox-quantum/switch#2163 ·
メンテナーはふだん 1 日以内に返信