mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
fix redownloading go-xcaddy every time, version 2.8.3 (#1034)
This commit is contained in:
commit
67ef8f6608
@ -34,7 +34,7 @@ use Symfony\Component\Console\Application;
|
||||
*/
|
||||
final class ConsoleApplication extends Application
|
||||
{
|
||||
public const string VERSION = '2.8.2';
|
||||
public const string VERSION = '2.8.3';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
@ -365,6 +365,7 @@ abstract class UnixBuilderBase extends BuilderBase
|
||||
$frankenphpAppPath = $this->getOption('with-frankenphp-app');
|
||||
|
||||
if ($frankenphpAppPath) {
|
||||
$frankenphpAppPath = trim($frankenphpAppPath, "\"'");
|
||||
if (!is_dir($frankenphpAppPath)) {
|
||||
throw new WrongUsageException("The path provided to --with-frankenphp-app is not a valid directory: {$frankenphpAppPath}");
|
||||
}
|
||||
|
||||
@ -30,8 +30,8 @@ class GoXcaddy extends CustomPackage
|
||||
public function fetch(string $name, bool $force = false, ?array $config = null): void
|
||||
{
|
||||
$pkgroot = PKG_ROOT_PATH;
|
||||
$go_exec = "{$pkgroot}/{$name}/bin/go";
|
||||
$xcaddy_exec = "{$pkgroot}/{$name}/bin/xcaddy";
|
||||
$go_exec = "{$pkgroot}/go-xcaddy/bin/go";
|
||||
$xcaddy_exec = "{$pkgroot}/go-xcaddy/bin/xcaddy";
|
||||
if ($force) {
|
||||
FileSystem::removeDir("{$pkgroot}/{$name}");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user