github / github/codeql

Failed to create database from node module

オープン
#11,102 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
question
主要言語
CodeQL
スター
10.1k
フォーク
2.1k
平均マージ
2日 15時間
マージ済み PR(30日)
141

説明

I wanted to create a database from the "installed" node module. But if I run this command

`codeql database create --language=javascript --source-root ../node_modules/101 test-javascript-database`
It always failed and gives this error.
`
[2022-11-03 12:59:36] [build-stderr] No JavaScript or TypeScript code found.`

Obviously, there are javascript files there, and it is printed on the log also. For example this

```
Extracting ../codeql/javascript/tools/data/externs/nodejs/repl.js
[2022-11-03 12:59:33] [build-stdout] Done extracting ../codeql/javascript/tools/data/externs/nodejs/repl.js (15 ms)
```

But I can create the database if the path is a normal GitHub repo. Is there any way to create database from node modules, or codeql does not support this?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。