Skip to content

CLI incompatible with dataset #2548

@c0rv4x

Description

@c0rv4x

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions