Description
Short description
CLI version 2.0.0 together with master
branch of ql says A fatal error occurred: This QL dataset is not compatible with the QL library /workspace/codeql/codeql-javascript-repo/ql/src/NodeJS/InvalidExport.ql uses. Perhaps the dataset needs to be upgraded?
Long description
Following the guidelines from getting started i have installed the CLI to /workspace/codeql/codeql-cli
directory.
Now i have cloned some JS repo and build a database on it like this:
./codeql-cli/codeql database create ./dbs/test1 --language javascript --source-root ./sources/1/
This works fine.
However, the analysis fails:
codeql database analyze dbs/test2 ./codeql-javascript-repo/ql/src/codeql-suites/javascript-lgtm.qls --format=csv --output=/dev/stdout
which gives me the incompatibility error.
Other info
Here is some more information on my setup
>> codeql resolve qlpacks
codeql-javascript (/workspace/codeql/codeql-javascript-repo/ql/src)
codeql-javascript-tests (/workspace/codeql/codeql-javascript-repo/ql/test)
codeql-javascript-upgrades (/workspace/codeql/codeql-javascript-repo/upgrades)
codeql-python (/workspace/codeql/codeql-python-repo/ql/src)
codeql-python-tests (/workspace/codeql/codeql-python-repo/ql/test)
codeql-python-upgrades (/workspace/codeql/codeql-python-repo/upgrades)
codeql-suite-helpers (/workspace/codeql/codeql-suite-helpers)
legacy-upgrades (/workspace/codeql/codeql-cli/legacy-upgrades)
>> codeql --version
CodeQL command-line toolchain.
Version: 2.0.0.
Copyright (C) 2019 GitHub, Inc.
Question
Should i somehow get the test suites of another version?