aboutcode-org / aboutcode-org/scancode-toolkit

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

未关闭
#2,328 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。