aboutcode-org / aboutcode-org/scancode-toolkit

packagedcode.about.AboutPackage.get_package_root() should not depend on access to ABOUT file

Offen
#2,328 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
2.6k
Forks
791
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

I am running some code that calls the `get_package_root()` method on Package objects created from a VirtualCodebase and my program crashes because it calls `get_package_root()` on an `AboutPackage`. The reason it fails is because it attempts to open the about file the AboutPackage is for. (https://github.com/nexB/scancode-toolkit/blob/develop/src/packagedcode/about.py#L63) We should go ahead and perform the FIXME stated in the code.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.