-
Notifications
You must be signed in to change notification settings - Fork 89
Bug: Windows - $'\r': command not found #103
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
Comments
Is this windows specific? does it work on |
Yeah seems Windows specific. Tested on Linux, no issues. Ran again on Windows and recieved:
Running with composer's verbose flag returns this:
Interestingly enough, when running |
Any ideas? Running it directly works, just not within composer's |
@Braunson looks like some strange behavior with the working directory that the command is run from. can you change the |
I have the same issue on Win 7 "extra": {
"hooks": {
"pre-commit": [
"vendor/bin/phplint"
]
}
} i try to run
if change pre-commit section to "pre-commit": [
"cd",
"vendor/bin/phplint"
]
if change pre-commit section to specific windows syntaxis "pre-commit": [
"vendor\\bin\\phplint"
]
|
I am experiencing the same problem on Windows 10 and I found something that could be relevant. I'm trying to set up My hooks look like this:
(I know this scans the entire code base, but I'm just setting it up and I haven't done the diff-ing yet) The relevant scripts:
Now the error I get when I try to commit through the Github client is:
Now, I checked out the hook that gets generated in It starts with If I change that to Then I get the files fixed by php-cs-fixer as newly staged files (not sure this is excatly what I want cause I kind of want to block the commit but have to figure that out). P.S. I can see that the change to use But ironically |
@denitsa-md I don't have Windows to test this, so I'm not certain how to proceed. I think previous most windows users have bash installed either through cygwin or WSL. Is that the case for you |
I will close for inactivity. Feel free to reopen if there is new information |
Uh oh!
There was an error while loading. Please reload this page.
When trying to commit via GitHub Desktop on Windows 10..
This is what my
composer.json
looks like...The text was updated successfully, but these errors were encountered: