trust filesystem, not downloads

This commit is contained in:
henderkes
2026-05-12 10:38:33 +07:00
parent 270e2d6471
commit c1c34d8c10
4 changed files with 48 additions and 2 deletions

View File

@@ -44,6 +44,9 @@ class CraftCommand extends BaseCommand
// apply env
array_walk($craft['extra-env'], fn ($v, $k) => f_putenv("{$k}={$v}"));
// stash craft for doctor checks that depend on what's being built (e.g. frankenphp → go-xcaddy)
ApplicationContext::set('craft', $craft);
// run doctor
if ($craft['craft-options']['doctor']) {
$doctor = new Doctor($this->output, FIX_POLICY_AUTOFIX);