fix: architecture agnostic runtimes in cli

This commit is contained in:
Torsten Dittmann 2024-09-16 12:43:59 +02:00
parent b3ea0bbb6b
commit a5516765b3
9 changed files with 55 additions and 1 deletions

View file

@ -1,12 +1,12 @@
<?php
require_once __DIR__ . '/init.php';
require_once __DIR__ . '/controllers/general.php';
use Appwrite\Event\Certificate;
use Appwrite\Event\Delete;
use Appwrite\Event\Func;
use Appwrite\Platform\Appwrite;
use Appwrite\Runtimes\Runtimes;
use Utopia\Cache\Adapter\Sharding;
use Utopia\Cache\Cache;
use Utopia\CLI\CLI;
@ -23,6 +23,12 @@ use Utopia\Queue\Connection;
use Utopia\Registry\Registry;
use Utopia\System\System;
// overwriting runtimes to be architectur agnostic for CLI
Config::setParam('runtimes', (new Runtimes('v4'))->getAll(supported: false));
// require controllers after overwriting runtimes
require_once __DIR__ . '/controllers/general.php';
Authorization::disable();
CLI::setResource('register', fn () => $register);

View file

@ -9451,6 +9451,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -10096,6 +10099,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",

View file

@ -8559,6 +8559,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -8970,6 +8973,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",

View file

@ -9451,6 +9451,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -10096,6 +10099,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",

View file

@ -8559,6 +8559,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -8970,6 +8973,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",

View file

@ -9573,6 +9573,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -10237,6 +10240,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",

View file

@ -8683,6 +8683,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -9117,6 +9120,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",

View file

@ -9573,6 +9573,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -10237,6 +10240,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",

View file

@ -8683,6 +8683,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",
@ -9117,6 +9120,9 @@
"python-3.11",
"python-3.12",
"python-ml-3.11",
"deno-1.21",
"deno-1.24",
"deno-1.35",
"deno-1.40",
"dart-2.15",
"dart-2.16",