aboutcode-org / aboutcode-org/scancode-toolkit

Consolidation plugin crashes

未關閉
#1,891 3 則留言 0 個 reaction 已指派 1 人 已被 @JonoYang 認領 在 GitHub 檢視
bug plugin
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

I was scanning a codebase using the consolidation plugin and the following error occured:

```
ERROR: failed to run post-scan plugin: consolidate:
Traceback (most recent call last):
File "/home/jyang/tools/scancode-toolkit/src/scancode/cli.py", line 1044, in run_codebase_plugins
plugin.process_codebase(codebase, **kwargs)
File "/home/jyang/tools/scancode-toolkit/src/summarycode/plugin_consolidate.py", line 183, in process_codebase
consolidations.extend(get_holders_consolidated_components(codebase))
File "/home/jyang/tools/scancode-toolkit/src/summarycode/plugin_consolidate.py", line 400, in get_holders_consolidated_components
for c in create_consolidated_components(ancestor, codebase, holder_key):
File "/home/jyang/tools/scancode-toolkit/src/summarycode/plugin_consolidate.py", line 414, in create_consolidated_components
if not (normalized_holder.key == holder_key):
AttributeError: 'collections.OrderedDict' object has no attribute 'key'
```

We will have to get the `key` value properly from `normalized_holder`.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。