@@ -944,16 +944,14 @@ export class CodeQLCliServer implements Disposable {
944944 return this . runJsonCodeQlCliCommand ( [ 'pack' , 'install' ] , args , 'Installing pack dependencies' ) ;
945945 }
946946
947- async packBundle ( dir : string , workspaceFolders : string [ ] , outputPath : string , precompile = true ) : Promise < void > {
947+ async packBundle ( dir : string , workspaceFolders : string [ ] , outputPath : string , moreOptions : string [ ] ) : Promise < void > {
948948 const args = [
949949 '-o' ,
950950 outputPath ,
951951 dir ,
952+ ...moreOptions ,
952953 ...this . getAdditionalPacksArg ( workspaceFolders )
953954 ] ;
954- if ( ! precompile && await this . cliConstraints . supportsNoPrecompile ( ) ) {
955- args . push ( '--no-precompile' ) ;
956- }
957955
958956 return this . runJsonCodeQlCliCommand ( [ 'pack' , 'bundle' ] , args , 'Bundling pack' ) ;
959957 }
@@ -1288,6 +1286,13 @@ export class CliVersionConstraint {
12881286 */
12891287 public static CLI_VERSION_REMOTE_QUERIES = new SemVer ( '2.6.3' ) ;
12901288
1289+ /**
1290+ * CLI version where building QLX packs for remote queries is supported.
1291+ * (The options were _accepted_ by a few earlier versions, but only from
1292+ * 2.11.3 will it actually use the existing compilation cache correctly).
1293+ */
1294+ public static CLI_VERSION_QLX_REMOTE = new SemVer ( '2.11.3' ) ;
1295+
12911296 /**
12921297 * CLI version where the `resolve ml-models` subcommand was introduced.
12931298 */
@@ -1383,6 +1388,10 @@ export class CliVersionConstraint {
13831388 return this . isVersionAtLeast ( CliVersionConstraint . CLI_VERSION_REMOTE_QUERIES ) ;
13841389 }
13851390
1391+ async supportsQlxRemote ( ) {
1392+ return this . isVersionAtLeast ( CliVersionConstraint . CLI_VERSION_QLX_REMOTE ) ;
1393+ }
1394+
13861395 async supportsResolveMlModels ( ) {
13871396 return this . isVersionAtLeast ( CliVersionConstraint . CLI_VERSION_WITH_RESOLVE_ML_MODELS ) ;
13881397 }
0 commit comments