Open robdekort opened 7 months ago
From digging into this, it looks like the issue is actually happening when Statamic attempts to create the super user, which is the step before a starter kit's post-install script runs.
For some reason, it looks like the custom disks configured in Peak's filesystems.php
file aren't loaded by the point the make:user
command is run via $this->console->call()
. Not sure why it'd suddenly be breaking on v5, unless it was a change somewhere in Laravel 11. 🤔
Probably needs some more digging.
Odd thing is also: it doesn't seem to go wrong consistently.
I've done a little more testing and it seems like this issue also exists on Statamic 4 too, it only happens when you install a starter kit into an existing site, not when creating a fresh site with the CLI.
statamic new brand-new-site
php please starter-kit:install studio1902/statamic-peak
I've done a little more testing and it seems like this issue also exists on Statamic 4 too, it only happens when you install a starter kit into an existing site, not when creating a fresh site with the CLI.
Ah, nice find. Yeah I'd never actually done that until now, to test v5. It's not a blocker then, glass half full!
Bug description
I'm sorry for this one in advance.
To test my post install script in Peak I install Statamic v5 using
composer create-project
and then runstarter-kit:install --local
. After creating a super user I get anInvalidArgumentException
:Peak contains a bunch of custom filesystems that are being used by the asset containers it ships with. It seems those don't get properly loaded during the install. This does work as expected in v4.
The solution is to run the install command a second time.
How to reproduce
composer create-project --prefer-dist --stability=dev statamic/statamic:dev-master
php please starter-kit:install studio1902/statamic-peak --local
Note: I'm installing a local version of Peak because the v5 version isn't released yet. You could replicate this using this statamic-peak.zip.
You will also need: peak-addons.zip
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response