diff --git a/codeql_bundle/helpers/bundle.py b/codeql_bundle/helpers/bundle.py index ecd5cb7..b19b7a3 100644 --- a/codeql_bundle/helpers/bundle.py +++ b/codeql_bundle/helpers/bundle.py @@ -566,8 +566,11 @@ def bundle_stdlib_pack(pack: ResolvedCodeQLPack): def bundle_library_pack(library_pack: ResolvedCodeQLPack): logging.info(f"Bundling the library pack {library_pack.config.name}.") + + pack_copy = copy_pack(library_pack) + self.codeql.pack_bundle( - library_pack, + pack_copy, self.bundle_path / "qlpacks", disable_precompilation=self.disable_precompilation, )