From 461bc23f0ae9b717077e9f1a7cb195061b30f8e6 Mon Sep 17 00:00:00 2001 From: Andreas Reinhold / reini Date: Sun, 13 Sep 2026 17:59:34 +0200 Subject: [PATCH] Fix the Docker image not starting: update Livewire Material to 1.1.1 The entrypoint's php artisan view:cache failed on the package's showcase views, whose components were only registered with the showcase enabled. 1.1.1 registers them always. ProductionBootTest caches every view with the showcase off, as the entrypoint does. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01V9NnLxnPp8vaaurb3Z1MFy --- CHANGELOG.md | 9 ++++++++- composer.lock | 6 +++--- tests/Feature/ProductionBootTest.php | 23 +++++++++++++++++++++++ 3 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 tests/Feature/ProductionBootTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index b41a8b3..d9aac3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.0.1] - 2026-09-13 + +### Fixed + +- The 2.0.0 Docker image did not start: the entrypoint's `php artisan view:cache` failed with "Unable to locate a class or view for component [showcase::example]", because Livewire Material only registered its showcase components while the showcase was enabled, which it is not in production. Livewire Material 1.1.1 registers them always, and a test now caches every view as the entrypoint does. + ## [2.0.0] - 2026-09-13 ### Added @@ -107,5 +113,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Dark themed UI built with Livewire, Alpine.js, Tailwind CSS and DaisyUI. - Docker images published to `ghcr.io/surtic86/sealshare`, served by FrankenPHP via Laravel Octane. -[Unreleased]: https://gitea.nonameweb.ch/noNameWEB/SealShare/compare/v2.0.0...main +[Unreleased]: https://gitea.nonameweb.ch/noNameWEB/SealShare/compare/v2.0.1...main +[2.0.1]: https://gitea.nonameweb.ch/noNameWEB/SealShare/compare/v2.0.0...v2.0.1 [2.0.0]: https://gitea.nonameweb.ch/noNameWEB/SealShare/releases/tag/v2.0.0 diff --git a/composer.lock b/composer.lock index 71d0670..63093e4 100644 --- a/composer.lock +++ b/composer.lock @@ -2999,11 +2999,11 @@ }, { "name": "nonameweb/livewire-material", - "version": "1.1.0", + "version": "1.1.1", "source": { "type": "git", "url": "https://gitea.nonameweb.ch/noNameWEB/livewire-material.git", - "reference": "d805dbc4076dc06c4d7e5023f99be4c420219975" + "reference": "db179e6b4e380bbd6aba2d3766ffcc84e58a8dd2" }, "require": { "laravel/framework": "^13.0", @@ -3083,7 +3083,7 @@ "material-design", "tailwindcss" ], - "time": "2026-09-13T12:39:26+00:00" + "time": "2026-09-13T15:40:33+00:00" }, { "name": "nunomaduro/termwind", diff --git a/tests/Feature/ProductionBootTest.php b/tests/Feature/ProductionBootTest.php new file mode 100644 index 0000000..5fc1e6b --- /dev/null +++ b/tests/Feature/ProductionBootTest.php @@ -0,0 +1,23 @@ +toBeFalse(); + + $compiled = storage_path('framework/testing/view-cache-'.uniqid()); + File::ensureDirectoryExists($compiled); + config(['view.compiled' => $compiled]); + + try { + $this->artisan('view:cache')->assertSuccessful(); + } finally { + File::deleteDirectory($compiled); + } +});