github / github/codeql

"codeql database create" command cannot recognize the relative path in "import" (Python/Go)

未關閉
#13,051 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Go Python question
主要語言
CodeQL
星號
10.1k
分支
2.1k
平均合併
2 天 15 小時
30 天內合併 PR
141

描述

If the project use relative path to import module lilke below:
```
from ...moduleA import ClassA
import .moduleB
from ..mouduleC import ClassC
```
The ```. .. ... ``` will cause WARN when you use codeql database create, here is the log:
```
[2023-05-05 09:32:15] [build-stdout] [WARN] [1] Failed to find .xxx, no parent package of Python module at xxx.py
[2023-05-05 09:32:15] [build-stdout] [WARN] [2] Failed to find ..xxx, no parent package of Python module at xxxxx.py
[2023-05-05 09:32:15] [build-stdout] [WARN] [2] Failed to find ....xxxx, no parent package of Python module at xxxxxx.py
```
Python and Go has the same problem, how can I fix this WARN?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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