github / github/codeql

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

Abierto
#13,051 6 comentarios 0 reacciones 0 asignados Ver en GitHub
Go Python question
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.