aboutcode-org / aboutcode-org/scancode-toolkit

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

Đang mở
#2,328 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.