-
Notifications
You must be signed in to change notification settings - Fork 16
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
Pre commit/push hooks fail in the latest version #123
Comments
Same here. |
Same issue happened here. Tried to execute: ➜ mix deps.get && mix deps.compile
➜ git commit -m "test" Results: Unchecked dependencies for environment dev:
* blankable (Hex package)
the dependency is not available, run "mix deps.get"
* ex_doc (Hex package)
the dependency is not available, run "mix deps.get"
* recase (Hex package)
the dependency is not available, run "mix deps.get"
* dialyxir (Hex package)
the dependency is not available, run "mix deps.get"
* credo (Hex package)
the dependency is not available, run "mix deps.get"
** (Mix) Can't continue due to errors on dependencies As an alternative 0.6.5 is working fine. |
Unfortunately |
We ran into this, and the current fix we have is to run |
I have limited time but actively looking at this when I have time to focus on it 😞 So far, I cannot reproduce this in a reliable way. The example project provided by this issue gets fixed after running I will keep investigating, but it will be great if I can get more details such as the folder structure of the repo as I think it's the root of the issue 🙏 |
When the auto_install feature creates #!/bin/sh
[ "/Users/myuser/code/myapp/deps/git_hooks" != "" ] && cd "/Users/myuser/code/myapp/deps/
git_hooks"
mix git_hooks.run pre_push "$@"
[ $? -ne 0 ] && exit 1
exit 0 I notice that if I remove the first line there, the git hook seems to work properly! It seems to mean that What is the idea with that |
Hey @djthread I am currently reviewing this issue, expect a preview version by this week 🤞 Regarding the |
I created a PR and will remove the auto directory change of this library, it's giving more problems than solving anything. Can anyone please test |
Hm. I checked out my app fresh and changed my During compilation, I saw
And the dev phoenix app started up ... My I'm not certain of many details, so feel free to ask questions. |
@apoorv-2204 is this happening with |
FWIW, I get the same error with
|
this works for me: mix deps.compile && mix git_hooks.install |
Hi 👋 ,
Thanks for this project!
Pre-commit or push hooks fail in the latest version for me under macOS Monterey 12.3 (whether it matters), I wonder if conditional
cd
shown in the screenshot is the culprit. (this commit)My config:
Seem to work fine with the version 0.6.5.
How to reproduce:
mix deps.get && mix compile
touch test.txt && git commit -m whatever
The text was updated successfully, but these errors were encountered: