mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix redownloading go-xcaddy every time
This commit is contained in:
parent
98117c3a04
commit
5623fed37f
@ -34,7 +34,7 @@ use Symfony\Component\Console\Application;
|
|||||||
*/
|
*/
|
||||||
final class ConsoleApplication extends Application
|
final class ConsoleApplication extends Application
|
||||||
{
|
{
|
||||||
public const string VERSION = '2.8.2';
|
public const string VERSION = '2.8.3';
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -30,8 +30,8 @@ class GoXcaddy extends CustomPackage
|
|||||||
public function fetch(string $name, bool $force = false, ?array $config = null): void
|
public function fetch(string $name, bool $force = false, ?array $config = null): void
|
||||||
{
|
{
|
||||||
$pkgroot = PKG_ROOT_PATH;
|
$pkgroot = PKG_ROOT_PATH;
|
||||||
$go_exec = "{$pkgroot}/{$name}/bin/go";
|
$go_exec = "{$pkgroot}/go-xcaddy/bin/go";
|
||||||
$xcaddy_exec = "{$pkgroot}/{$name}/bin/xcaddy";
|
$xcaddy_exec = "{$pkgroot}/go-xcaddy/bin/xcaddy";
|
||||||
if ($force) {
|
if ($force) {
|
||||||
FileSystem::removeDir("{$pkgroot}/{$name}");
|
FileSystem::removeDir("{$pkgroot}/{$name}");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user