Skip to content

Commit a8c7110

Browse files
henrymercerCopilot
andcommitted
Remove unreachable minimum version check for Rust analysis
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 3c1b1b6 commit a8c7110

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/init-action.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ async function run(
349349
// to the workflow log. No exceptions are thrown.
350350
await checkWorkflow(logger, codeql);
351351

352-
// Set CODEQL_ENABLE_EXPERIMENTAL_FEATURES for Rust if between 2.19.3 (included) and 2.22.1 (excluded)
352+
// Set CODEQL_ENABLE_EXPERIMENTAL_FEATURES for Rust if the CLI is older than 2.22.1.
353353
// We need to set this environment variable before initializing the config, otherwise Rust
354354
// analysis will not be enabled (experimental language packs are only active with that environment
355355
// variable set to `true`).
@@ -360,14 +360,8 @@ async function run(
360360
.getRawLanguagesNoAutodetect(getOptionalInput("languages"))
361361
.includes(BuiltInLanguage.rust)
362362
) {
363-
const experimental = "2.19.3";
364363
const publicPreview = "2.22.1";
365364
const actualVer = (await codeql.getVersion()).version;
366-
if (semver.lt(actualVer, experimental)) {
367-
throw new ConfigurationError(
368-
`Rust analysis is supported by CodeQL CLI version ${experimental} or higher, but found version ${actualVer}`,
369-
);
370-
}
371365
if (semver.lt(actualVer, publicPreview)) {
372366
core.exportVariable(EnvVar.EXPERIMENTAL_FEATURES, "true");
373367
logger.info("Experimental Rust analysis enabled");

0 commit comments

Comments
 (0)