github / github/codeql

Failed to create database from node module

Đang mở
#11,102 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
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ả

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?

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.