github / github/codeql

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

Đang mở
#13,051 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Go Python question
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

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?

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.