Closed daniel-waiguru closed 1 year ago
Hey @DanielWaiguru91 - sorry for the delay, failed to notice this new issue.
So we have seen other reports about this error on Windows. Unfortunately, we don't have much QA on Windows nowadays.
It's important to point out that we strongly suggest leveraging WSL2 for your Docker base development. Running kool
from within a Bash certainly would work and we have a growing community using it that way, so it's battle-tested in that setup.
What you can do
While we don't track down and fix this issue on Windows, you can remove the cp
from kool.yml
and have that as a manual step. This is the simplest solution.
Again, we do believe that taking a crack on WSL2 could be really worthwhile.
I guess cp
is a Unix command. @fabriciojs how about replacing these non kool commands in our scripts by a kool command? We could use kooldev/bash image for that, for example
e.g.: kool docker kooldev/bash -c "cp .env.example .env"
@danielsuguimoto I think this is a good way out, yes.
This has been fixed as suggested above - newly installed presets will have the kooldev/bash
image to run the cp
- so we are platform-agnostic and make sure it will always work.
Getting this error while trying to run
kool run setup
on windows machine freshly created laravel projectfailed to run cp .env.example .env error: command not found
Here is my kool.yml file content scripts.