mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
Fix docker doctor fix pkgroot volume overwrite bug
This commit is contained in:
@@ -29,6 +29,18 @@ class PkgConfigCheck
|
||||
return CheckResult::ok($pkgconf);
|
||||
}
|
||||
|
||||
#[AsCheckItem('if pkg-config is working', level: 799)]
|
||||
public function checkPkgConfigFunctional(): CheckResult
|
||||
{
|
||||
$pkgconf = PkgConfigUtil::findPkgConfig();
|
||||
// check if pkg-config is functional
|
||||
[$ret, $output] = shell()->execWithResult("{$pkgconf} --version", false);
|
||||
if ($ret === 0) {
|
||||
return CheckResult::ok(implode(' ', $output));
|
||||
}
|
||||
return CheckResult::fail('pkg-config is not functional', 'install-pkgconfig');
|
||||
}
|
||||
|
||||
#[AsFixItem('install-pkgconfig')]
|
||||
public function installPkgConfig(): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user