General issue
- 主要语言
- CodeQL
- 星标
- 10.1k
- 派生
- 2.1k
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 141
描述
**Description of the issue**
*** Question1 ***
Hi, I got a problem when I try to create database for a golang codebase.
env:
macos:12.0.1
codeql:2.13.1
command:
```
codeql database create /home/work/codeql_db/xxx --language=go --command="make all -f Makefile" --overwrite
```
console error log:
```
CodeQL detected code written in Go but could not process any of it. This can occur if the specified build commands failed to compile or process any code.
- Confirm that there is some source code for the specified language in the project. <----------note, confirmed
- For codebases written in Go, JavaScript, TypeScript, and Python, do not specify
an explicit --command.
- For other languages, the --command must specify a "clean" build which compiles
all the source code files without reusing existing build artefacts.
```
*** Question2 ***
Does codeql support multi commands like `--command="cd ../../ && ..... && make Makefile"`? I ran the whole command, codeql return message like question1. But it generate database successfully when I just run `--command="make Makefile"`.
贡献指南
调研方向
Start by reproducing the two CodeQL database creation commands on the reported macOS and CodeQL 2.13.1 setup, comparing the explicit make command with the command using cd and chained commands. Review the console error and determine why Go was not processed. Done means documenting the supported command form and the cause of the differing results.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go
- 领域
- cli, devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100