github / codeql-cli-binaries

Binaries for the CodeQL CLI
Other
703 stars 101 forks source link

CodeQL Cpp Library Errors when Publishing CodeQL Pack #148

Closed lauragonzalezzz closed 1 year ago

lauragonzalezzz commented 1 year ago

Publish_WHCP22H2_CodeQLPack.txt

Heyo! I am attempting to publish Microsoft/WHCP_22H2 CodeQL pack following directions from Creating and working with CodeQL packs and Publishing and using CodeQL packs but it fails due to errors in the cpp-all library with the following message: A fatal error occurred: A 'codeql pack create' operation failed with error code 2

Can you help me understand what I need to do to get my package published? I've attached a log for your reference. Thanks!

jketema commented 1 year ago

Hi @lauragonzalezzz,

Looking at your log, it seems the CodeQL CLI you're trying to use is older than the cpp-all pack, and the cpp-all pack uses features that were not part of the CLI version you're using (2.6.3?). The solution is to use a CLI version that matches the one released with the cpp-all pack version you're trying to use. Going by the path names the you seem to be using cpp-all pack version 0.3.5, so the matching CLI version would be 2.10.5

lauragonzalezzz commented 1 year ago

Thank you for the quick response @jketema!