Skip to content

[Codeql] How to update the database when I minor change the source code. #219

Answered by p0
pcy190 asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: There's currently no better way than what you're already doing -- deleting the database and re-creating it.

Longer explanation: For compiled languages, creating a CodeQL database observes a full build in order to interpret the source code correctly. It wouldn't be possible to update the information in the database correctly based purely on a source file diff -- for example, we wouldn't know what binaries that source file is linked to, what platforms/architectures it is compiled for, or what its compile-time dependencies are.

For interpreted languages (like JavaScript and Python), you could in principle use an "extractor cache" to avoid re-processing unchanged files, but the …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@pcy190
Comment options

@p0
Comment options

@pcy190
Comment options

@pcy190
Comment options

Answer selected by pcy190
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@intrigus-lgtm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants