Skip to content

Commit 85e110f

Browse files
authored
Merge pull request #17 from bbbates/main
Honour --no-precompile setting when bundling query packs
2 parents c65d9c3 + 1cefd7a commit 85e110f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

codeql_bundle/helpers/bundle.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ def bundle_query_pack(pack: ResolvedCodeQLPack):
614614
)
615615
# Recompile the query pack with the assumption that all its dependencies are now in the bundle.
616616
self.codeql.pack_create(
617-
pack_copy, self.bundle_path / "qlpacks", self.bundle_path
617+
pack_copy, self.bundle_path / "qlpacks", self.bundle_path,
618+
disable_precompilation=self.disable_precompilation
618619
)
619620
else:
620621
logging.info(f"Bundling the query pack {pack.config.name}.")
@@ -632,7 +633,8 @@ def bundle_query_pack(pack: ResolvedCodeQLPack):
632633
with pack_copy.path.open("w") as fd:
633634
yaml.dump(qlpack_spec, fd)
634635

635-
self.codeql.pack_create(pack_copy, self.bundle_path / "qlpacks")
636+
self.codeql.pack_create(pack_copy, self.bundle_path / "qlpacks",
637+
disable_precompilation=self.disable_precompilation)
636638

637639
sorted_packs = list(pack_sorter.static_order())
638640
logger.debug(

0 commit comments

Comments
 (0)