Add a feature flag to turn this off for newer versions of codeql
This commit is contained in:
parent
028bacb8e9
commit
669c61022c
7 changed files with 18 additions and 9 deletions
6
lib/init.js
generated
6
lib/init.js
generated
|
|
@ -109,8 +109,10 @@ function processError(e) {
|
|||
* If we are running python 3.12+ on windows, we need to switch to python 3.11.
|
||||
* This check happens in a powershell script.
|
||||
*/
|
||||
async function checkInstallPython311(languages) {
|
||||
if (languages.includes(languages_1.Language.python) && process.platform === "win32") {
|
||||
async function checkInstallPython311(languages, codeql) {
|
||||
if (languages.includes(languages_1.Language.python) &&
|
||||
process.platform === "win32" &&
|
||||
!(await codeql.getVersion()).features?.supportsPython312) {
|
||||
const script = path.resolve(__dirname, "../python-setup", "check_python12.ps1");
|
||||
await new toolrunner.ToolRunner(await safeWhich.safeWhich("powershell"), [
|
||||
script,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue