Skip to content

Commit

Permalink
fix: prevent Box double requirement check
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Nov 14, 2023
1 parent 29fae0b commit e02f135
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Command/Serve.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<comment>Process: %s</comment>', implode(' ', $buildProcessArguments)));
Expand Down

0 comments on commit e02f135

Please sign in to comment.