Revert "Merge pull request #869 from github/edoardo/windows-11-error"

This reverts commit faa9ba7363, reversing
changes made to 71112ab35d.
This commit is contained in:
Edoardo Pirovano 2022-02-24 11:29:26 +00:00
parent 360221eece
commit 42af7232c3
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
6 changed files with 4 additions and 28 deletions

View file

@ -23,7 +23,7 @@ import {
installPythonDeps,
runInit,
} from "./init";
import { isTracedLanguage, Language } from "./languages";
import { Language } from "./languages";
import { getActionsLogger } from "./logging";
import { parseRepositoryNwo } from "./repository";
import {
@ -38,7 +38,6 @@ import {
getThreadsFlagValue,
DEFAULT_DEBUG_ARTIFACT_NAME,
DEFAULT_DEBUG_DATABASE_NAME,
checkNotWindows11,
getMlPoweredJsQueriesStatus,
} from "./util";
@ -198,11 +197,6 @@ async function run() {
logger
);
if (config.languages.some(isTracedLanguage)) {
// We currently do not support tracing on Windows 11 and Windows Server 2022
checkNotWindows11();
}
if (
config.languages.includes(Language.python) &&
getRequiredInput("setup-python-dependencies") === "true"

View file

@ -630,14 +630,6 @@ export function isGoodVersion(versionSpec: string) {
return !BROKEN_VERSIONS.includes(versionSpec);
}
export function checkNotWindows11() {
if (os.platform() === "win32" && semver.gte(os.release(), "10.0.20348")) {
throw new Error(
"Tracing builds with CodeQL is currently not supported on Windows 11 and Windows Server 2022. Please modify your Actions workflow to use an earlier version of Windows for this job, for example by setting `runs-on: windows-2019`."
);
}
}
/**
* The ML-powered JS query pack to add to the analysis if a repo is opted into the ML-powered
* queries beta.