Open jaydrogers opened 1 week ago
Hey @quantumwebco,
Thanks for your help on diagnosing this issue. Although running this makes the issue go away, I'd like to make sure it's resolved automatically with Spin:
git config --global core.autocrlf input
git config --global core.eol lf
I took a Laravel Herd app and ran spin init
on my WSL2 (Ubuntu 22.04) machine: https://www.dropbox.com/scl/fi/c6g321fuxa54wcx37lwht/WSL2-Install.mp4?rlkey=19o7cac1nhkafxk28nq7j27zg&st=i1bw7p56&dl=0
You can see in the video I ran into some errors, but that was be basically me missing having a running Laravel instance before cloning it down to my Windows machine. Once I set up and configured an env file I was good to go.
Am I following your steps correctly?
Unfortunately I can't recreate it now. After setting the git config it just works. I even tried running
git config --global --unset core.autocrlf
git config --global --unset core.eol
However I now have a new issue
For that error, it looks like you have some sort of volume issue on your machine.
spin prune
to clear all Spin cache and docker cachedocker volume rm $(docker volume ls -q)
. This will remove ALL VOLUMES from your machine, but you can easily recreate them if you're just mounting to paths (like -v /my/local/dir:/inside/container/dir
)Cool thanks for the info, will do some testing with that and come back to you. All my other docker containers and mounts seem to be working fine. It started happening after I updated to latest version for this fix https://github.com/serversideup/spin-template-laravel-basic/issues/9
Thanks! Keep me posted. It could potentially be a Docker cache that will hopefully get fixed after clearing 😅🤞
Hey @jaydrogers it looks like spin prune
did the job. Thanks!
spin init laravel
UPDATE: solved by running
Originally posted by @quantumwebco in https://github.com/serversideup/spin/issues/99#issuecomment-2371012405