Revert "Merge pull request #869 from github/edoardo/windows-11-error"
This reverts commitfaa9ba7363, reversing changes made to71112ab35d.
This commit is contained in:
parent
360221eece
commit
42af7232c3
6 changed files with 4 additions and 28 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue