Skip to content

Including semmle libraries in custom query suites #10901

Answered by tausbn
mutasDev asked this question in Q&A
Discussion options

You must be logged in to vote

May I ask how you're creating your query pack? For me, the following interaction with the CodeQL CLI seemed to work just fine:

% codeql pack init test
Created qlpack at .../test/qlpack.yml
% cd test
% codeql pack add codeql/python-queries
Adding codeql/python-queries@0.5.1 to dependencies.
Saving qlpack.yml.
Reinstalling dependencies.
Package install location: ~/.codeql/packages
Installed fresh codeql/python-queries@0.5.1
Installed fresh codeql/python-all@0.6.1 (library)
Installed fresh codeql/suite-helpers@0.1.0

At this point I added a file test.ql with the following contents:

import python
import experimental.semmle.python.Concepts

select 1

and now compiling it works:

% codeql query c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mutasDev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants