From 1cefd7afc4e39466637f4db556c4ea466b113e48 Mon Sep 17 00:00:00 2001 From: Brendan Bates Date: Mon, 23 Jun 2025 10:45:24 +1000 Subject: [PATCH] Precompilation disabled setting is honoured when bundling query packs --- codeql_bundle/helpers/bundle.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/codeql_bundle/helpers/bundle.py b/codeql_bundle/helpers/bundle.py index b19b7a3..9278586 100644 --- a/codeql_bundle/helpers/bundle.py +++ b/codeql_bundle/helpers/bundle.py @@ -614,7 +614,8 @@ def bundle_query_pack(pack: ResolvedCodeQLPack): ) # Recompile the query pack with the assumption that all its dependencies are now in the bundle. self.codeql.pack_create( - pack_copy, self.bundle_path / "qlpacks", self.bundle_path + pack_copy, self.bundle_path / "qlpacks", self.bundle_path, + disable_precompilation=self.disable_precompilation ) else: logging.info(f"Bundling the query pack {pack.config.name}.") @@ -632,7 +633,8 @@ def bundle_query_pack(pack: ResolvedCodeQLPack): with pack_copy.path.open("w") as fd: yaml.dump(qlpack_spec, fd) - self.codeql.pack_create(pack_copy, self.bundle_path / "qlpacks") + self.codeql.pack_create(pack_copy, self.bundle_path / "qlpacks", + disable_precompilation=self.disable_precompilation) sorted_packs = list(pack_sorter.static_order()) logger.debug(