-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
local hooks stopped working after updating to latest verison. #18739
Comments
My pre-commit hooks also failed after updating to |
I have same problem after updating to 3.4.0 in Windows! |
I'm running into this issue when trying to run pwsh.exe as well. |
Same issue here. I have to use the exact file path in my hooks for it to work now. |
Same issue, wsl2 pre-commit hooks working just fine until this latest update, I've checked the environment variables and everything is setup correctly, pointing to where the git binary is in AppData, getting |
Best part is github in all their wisdom doesnt publish older builds. So if you get auto-updated to a broken version you better find a new client. |
I found this download url worked for v3.3.18. Also, rename the |
I think this could've been the root cause. |
👋 The embedded version of Git was recently updated for security reasons. Does anyone have the latest version (2.45.2) Git installed and can successfully run the hooks from the command line? |
I have the latest git |
@TheMikeyRoss With your setup, does this error only occur within GitHub Desktop, or does it also occur when executing |
@fbastien It only occurs within the github desktop app. When I make a commit via the terminal the husky hooks run successfully and I face no issues. I even installed Atlassian Sourcetree to test it out and I faced no issues. So I'm 100% confident the issue is strictly happeniing when I try to make a commit with the Github Desktop app. |
Thanks for the clarification |
Hello, |
In the case you use Husky, you just "uninstalled it" so, it's not a real fix, you need to run again |
@asfo I tried adding a simple husky pre-commit hook with no luck reproducing this issue. Would you (or anyone) mind sharing your hook setup that I might be able to reproduce it? |
@tidy-dev My
This results in the following error
[EDIT] |
@CalebSmith0801 It seems PATH variables are ignored in the latest update |
I can confirm this, it looks like an issue with MinGW replacing/overwriting the path. I'm getting the following error message when trying to commit with a husky commit-msg hook (see my other comment on this):
The I tried downgrading to EDIT: Yes, it looks like the Windows
|
seems the same as #18701 (comment) |
Thank you all for digging into this. If it's related to the PATH, it might be caused by these changes: desktop/dugite#563 We'll keep digging 🕵 |
@TheBlubb14 Yup, that seems to be it! |
Ok I think we've got it… that PR I linked in my previous comment changes the way we grab and modify the
Thank you all again for your help diagnosing the issue 🙇♂ We'll try to get a fix out ASAP |
@sergiou87 You get 'em Loofy 🤩 |
same problem with |
👋 We believe we have fix. Would any one mind verifying with this 3.4.1-test1 build? |
This build fixed the issue for me (described in #18768), thanks a bunch ! |
+1, this build seems to fix the issue. Echoing the |
Confirmed to be working for me as well (for #18705). |
Coming from #18701, this build fixes signed commits |
Released! You can now upgrade to 3.4.1 (download here) 🎉 Thanks again everyone! 💖 |
Thanks alot for fixing this issue. Much awaited fix. 🎉🎉🎉 |
@tidy-dev I'm still having issues with version 3.4.1(arm64) |
@east-shine I am sorry to hear that. It is likely a different root cause. Could you open a new issue to track it? (Please remember to include logs) |
maybe this helps others. and ended up with the same problem described above. After running GitHubDesktop is working again |
Have you checked the official Husky instructions for use with NVM? |
The problem
local hooks stopped working after updating to the latest version (Version 3.4.0 (x64)).
The command line works without problems, but it fails to find Python when using the GitHubDesktop GUI.
Error message: "/usr/bin/env: ‘python’: No such file or directory"
Release version
Version 3.4.0 (x64)
Operating system
Windows 10
Steps to reproduce the behavior
Create local hook that uses python.
path: .git/hooks/prepare-commit-msg
And try commit using GitHubDesktop.
Log files
No response
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered: