-
Notifications
You must be signed in to change notification settings - Fork 202
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
"extends" path using an environment variable not working as expected #135
Comments
Looking into this, the root cause of this issue is So:
The good news is, there's spf13/viper#495 which fixes the issue and adds a solid unit test (outside of this PR, viper does not currently test So, until there's an upstream fix in
|
Finally I got a fix merged for this upstream: spf13/viper#940 So the issue described above in |
Closed by #148. |
I'm trying to get lefthook to use hooks from a custom external directory defined via an environment variable
(e.g.
extends: $HOOKDIR/hooks.yml
).So far I haven't been able to get it working, but maybe I'm missing something obvious.
Steps to reproduce (tested using bash):
For context:
Remote config as in #118 would be a better solution for my use case (sharing a standard set of common hooks across repos for a team of developers), but unless / until that PR gets merged, I'll be looking at
extends:
plus an env-defined local path as the next best thing.The text was updated successfully, but these errors were encountered: