Problem with installing additional dependencies #12048
-
Hey, im trying to run my own query set containing a .ql query for python IncompleteHostNameRegExp taken from the official CodeQL Repository. When I try to compile the queries, ten of them compile and can run through, but the IncompleteHostNameRegExp fails with the following error:
The ql. file contains the following content:
I have tried to reinstall the python-queries dependencies, but when I try to do that I get the following error, too:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
The problem that you are facing is that the query pack you are trying to run depends on If there is no file, create one and add the minimal content:
In the directory containing this file, run the command:
This will download and install all dependencies of your pack, including transitive dependencies. Then you can re-run your queries. More information about codeql packs can be found in the documentation. https://codeql.github.com/docs/codeql-cli/about-codeql-packs/ |
Beta Was this translation helpful? Give feedback.
The problem that you are facing is that the query pack you are trying to run depends on
codeql/[email protected]
(possibly a transitive dependency). I'm not entirely sure what context you are running your queries in and if they are in a query pack right now (look for aqlpack.yml
orcodeql-pack.yml
file in the directory or a parent).If there is no file, create one and add the minimal content:
In the directory containing this file, run the command:
This will download and install all dependencies of your pack, including transitive dependencies. Then you can re-run your queries.
More information about codeql pack…