The root of the problem is the root: How to get a root at all times in a codebase (or no root at all)
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Es werden keine Quelldateien oder Tests genannt. Beginne mit der Überprüfung der Codebase-Klassen und des Verhaltens von ScanCode TK --from-json und --strip-root, einschließlich der Handhabung von virtual_root und der Pfadreihenfolge. Abgeschlossen ist die Aufgabe, wenn eine abgestimmte, dokumentierte Spezifikation vorliegt, die die Root-Semantik für POSIX, Windows, Teilmengen und die projektübergreifende Verwendung klärt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Python
- Sterne
- 4
- Forks
- 25
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus aboutcode-org/commoncode
-
Consider that Resource.parent can be None when removing resources from the codebaseEvtl. vergeben @Mirochill hat das vor 177 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
aboutcode-org/commoncode#84 ·
-
Click 8.5.0: omitted boolean flags incorrectly trigger conflicting_options validationEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 66/100
aboutcode-org/commoncode#112 ·
-
Revisit cliutils.pyOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
aboutcode-org/commoncode#102 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
aboutcode-org/commoncode#101 · 1 Kommentar ·
-
mass-scan: Create library to collect a whole project version from Software HeritageEvtl. wieder frei @chinyeungli hat das vor 264 Tagen übernommen, und es ist kein Pull Request offen. Offen
aboutcode-org/commoncode#77 · 7 Kommentare · 1 zugewiesene Person ·
Alle Issues in aboutcode-org/commoncode
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
mohanraj00/entelos#200 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Dead url in mise.tomlOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
-
sweep
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
bketelsen/truenas-mcp#77 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
sandbox-quantum/switch#2163 ·
Maintainer antworten meist innerhalb von 1 Tag