From e02f13595d43eba1842f4a713640b85d2669dc3d Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Tue, 14 Nov 2023 17:27:11 +0100 Subject: [PATCH] fix: prevent Box double requirement check --- src/Command/Serve.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Command/Serve.php b/src/Command/Serve.php index 699aabe3e..9d1c80f16 100644 --- a/src/Command/Serve.php +++ b/src/Command/Serve.php @@ -126,7 +126,11 @@ protected function execute(InputInterface $input, OutputInterface $output) $buildProcessArguments[] = $page; } - $buildProcess = new Process(array_merge($buildProcessArguments, [$this->getPath()])); + $buildProcess = new Process( + array_merge($buildProcessArguments, [$this->getPath()]), + null, + ['BOX_REQUIREMENT_CHECKER' => '0'] // prevents double check (build then serve) + ); if ($this->getBuilder()->isDebug()) { $output->writeln(sprintf('Process: %s', implode(' ', $buildProcessArguments)));