From 07f7366f11c83aa2a3cc94ae5f308ac6dd1dfa68 Mon Sep 17 00:00:00 2001 From: Joel Butcher Date: Mon, 24 Jun 2024 07:29:10 +0100 Subject: [PATCH] [6.x] - [fix] install command not installing Laravel Jetstream and failing (#359) * fix: override socialite dep * fix: install jetstream without interaction * disable vue-ts stubs check --- .github/workflows/breeze-stub-tests.yml | 5 ++--- composer.json | 3 ++- src/Installer/Drivers/Jetstream/JetstreamDriver.php | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/breeze-stub-tests.yml b/.github/workflows/breeze-stub-tests.yml index bdd76325..476ffe23 100644 --- a/.github/workflows/breeze-stub-tests.yml +++ b/.github/workflows/breeze-stub-tests.yml @@ -18,7 +18,8 @@ jobs: matrix: php: [ 8.2, 8.3 ] laravel: [ 11 ] - stack: [ blade, livewire, "livewire-functional", react, vue, react-ts, vue-ts ] +# stack: [ blade, livewire, "livewire-functional", react, vue, react-ts, vue-ts ] + stack: [ blade, livewire, "livewire-functional", react, vue, react-ts ] tester: [ phpunit, pest ] name: Test Laravel Breeze Stubs - PHP ${{matrix.php }} – Laravel ${{ matrix.laravel }} - ${{ matrix.stack }} – ${{ matrix.tester }} @@ -49,8 +50,6 @@ jobs: composer update "joelbutcher/socialstream" --prefer-dist --no-interaction --no-progress -W php artisan socialstream:install breeze ${{ matrix.stack == 'vue-ts' && 'vue' || matrix.stack == 'react-ts' && 'react' || matrix.stack }} \ --dark \ - --api \ - --verification \ ${{ matrix.tester == 'pest' && '--pest' || '' }} \ ${{ (matrix.stack == 'vue' || matrix.stack == 'react') && '--ssr' || '' }} \ ${{ (matrix.stack == 'vue-ts' || matrix.stack == 'react-ts') && '--typescript' || '' }} diff --git a/composer.json b/composer.json index 0982b366..7f977f26 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ "php": "^8.2", "illuminate/contracts": "^11.0", "laravel/prompts": "^0.1.10", - "laravel/socialite": "^5.12" + "laravel/socialite": "^5.12", + "paragonie/constant_time_encoding": "^2.7" }, "require-dev": { "laravel/breeze": "^2.0", diff --git a/src/Installer/Drivers/Jetstream/JetstreamDriver.php b/src/Installer/Drivers/Jetstream/JetstreamDriver.php index ac27912b..57b3c4f9 100644 --- a/src/Installer/Drivers/Jetstream/JetstreamDriver.php +++ b/src/Installer/Drivers/Jetstream/JetstreamDriver.php @@ -65,6 +65,7 @@ protected function ensureDependenciesAreInstalled(string $composerBinary, Instal fn (InstallOptions $option) => "--$option->value", ), '--quiet', + '--no-interaction' ], base_path())) ->setTimeout(null) ->run(function ($type, $output) {