Replies: 1 comment 7 replies
-
Hey! You see different version probably because you have different global lefthook and lefthook from npm package. Could you please clarify a few things?
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a very specific issue. I am working on a Flutter project which uses lefthook. So there is no /npm folder for example.
And this project currently doesn't work with the newest version of lefthook. It's working with version 1.2.6.
Therefore I've installed this specific lefthook version 1.2.6. When I run lefthook commands from lefthook.yml individually, everything looks fine, command line uses version 1.2.6.
The main issue is when I run "git commit" command. Then for some reason it runs few npm exec commands and uses version 1.4.3. instead. Then my git commit fails. I had to uninstall lefthook on this project as a workaround to be able to at least commit.
Do you have any idea how could I solve it and force to use lefthook version 1.2.6. within "git commit"?
I am using Windows, even tried to add lefthook path to my PATH variable but maybe in a wrong way.
This is output of my git commit command
And this is lefthook.yml
Thanks for any advice.
Beta Was this translation helpful? Give feedback.
All reactions