-
-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command can not be run in Windows #319
Comments
Can you add a little bit more detail? When you say |
I mean Windows Power Shell |
So, at Windows other solution would be to check if the command is an alias like del, erase, rd, rmdir, rm, ri; it if is not, then could be checked if it exist in $PATH. |
This was a good ticket for me to dive into the code a little bit. I don't use powershell so I learned something today. I wanted to reproduce what you are talking about:
I used this Taskfile.yml
Digging into the code I can see that task uses mvdan/sh to execute According to this issue the author doesn't want to add support for this. So that leaves you with a few alternative options:
HTH |
@andreynering this really snagged me quite a few times. Is there any solid reference on what isn't supported or maybe what core builtins are supported? The main reason I switched to go-task over Make was cross platform functionality, but I've run into basic This would be really useful to point to in the docs so folks know the OS specific limitations. Not sure if there is any reference yet that I missed. |
@sheldonhull Please keep the discussion on #197 as this is a duplicated issue. Also, keep in mind there's an upstream issue on mvdan/sh#93. |
A command like
- cmd: rm -r -fo "$home/foo/"
cann't be run becausetask
finds the command in $PATHBut in Windows, they are in commands which are not in $PATH but they can be run from the shell.
The solution would be do not find the command in Windows systems.
The text was updated successfully, but these errors were encountered: