Fix phpunit, add SPC_SKIP_TOOLCHAIN_CHECK

This commit is contained in:
crazywhalecc
2025-06-29 19:48:09 +08:00
parent fcaa7c5f42
commit 7f45f4aeec
4 changed files with 6 additions and 7 deletions

View File

@@ -32,7 +32,6 @@ abstract class BaseCommand extends Command
parent::__construct($name);
$this->addOption('debug', null, null, 'Enable debug mode');
$this->addOption('no-motd', null, null, 'Disable motd');
$this->addOption('no-env-check', null, null, 'Disable env check for builder');
}
public function initialize(InputInterface $input, OutputInterface $output): void
@@ -100,7 +99,7 @@ abstract class BaseCommand extends Command
// init GlobalEnv
if (!$this instanceof BuildCommand) {
GlobalEnvManager::init();
$this->input->setOption('no-env-check', true);
f_putenv('SPC_SKIP_TOOLCHAIN_CHECK=yes');
}
if ($this->shouldExecute()) {
try {