扫描数据库就会提示缺少qlpack.yml文件
python3 main.py -d /Users/xxxxxxxx/tools/CodeQL/CodeQLpy/out/database/ruoyi_demo Welcome to .. _________ . ________ . _ __ | | _ ___ \ ____ | /_ _____ \ | | | // | | / \ / / _ \ / __ |/ __ \ / / \ | | | | _ | \ _( <> ) // \ // _/. \ | || / | _ /_/_ |__ >_____\ _/_______ / / / / __> /
2023/03/29 14:57:26 functions.py WARNING 2023/03/29 14:57:26 functions.py WARNING 2023/03/29 14:57:28 functions.py WARNING Compiling query plan for /Users/xxxxxx/tools/CodeQL/tmpjfw8i5b8/4a24a317f6b24508ac45368607e75799.ql. ERROR: Could not resolve module java. There should probably be a qlpack.yml file declaring dependencies in /Users/xxxxxx/tools/CodeQL/tmpjfw8i5b8 or an enclosing directory. (/Users/xxxxxxx/tools/CodeQL/tmpjfw8i5b8/4a24a317f6b24508ac45368607e75799.ql:1,8-12)
2023/03/29 14:57:28 check.py ERROR database or codeql is error. qlpath error,check it at config/config.ini or close the Visual Studio Code.
第一个可能原因是config/config.ini中的qlpath参数有问题,另一个可能原因是需要关闭VS Code。
感谢回答,发现是自己配置路径出现问题
qlpath是选择codeql的path么