From: Dan Brown Date: Wed, 14 May 2025 11:44:25 +0000 (+0100) Subject: Download Vendor: Added packages to cleanup files X-Git-Url: http://source.bookstackapp.com/system-cli/commitdiff_plain/b48cc31352bd8d0b4a3ad901d78b27e5159d3ace Download Vendor: Added packages to cleanup files --- diff --git a/src/Commands/DownloadVendorCommand.php b/src/Commands/DownloadVendorCommand.php index 7c18fed..d3b0501 100644 --- a/src/Commands/DownloadVendorCommand.php +++ b/src/Commands/DownloadVendorCommand.php @@ -1,4 +1,4 @@ -withOwnBookStackFolder(function (string $basePath) { exec("rm -rf $basePath/vendor"); file_put_contents("$basePath/version", 'v25.02'); + file_put_contents("$basePath/bootstrap/cache/packages.php", 'cat'); + file_put_contents("$basePath/bootstrap/cache/services.php", 'dog'); @mkdir("$basePath/dev/checksums", 0777, true); file_put_contents("$basePath/dev/checksums/vendor", '22e02ee72d21ff719c1073abbec8302f8e2096ba6d072e133051064ed24b45b1'); @@ -23,6 +25,8 @@ class DownloadVendorCommandTest extends TestCase $result->assertStdoutContains('Successfully downloaded & extracted vendor files into BookStack instance!'); $this->assertDirectoryExists("$basePath/vendor/composer"); + $this->assertFileDoesNotExist("$basePath/bootstrap/cache/packages.php"); + $this->assertFileDoesNotExist("$basePath/bootstrap/cache/services.php"); }); }