error: Justfile does not contain recipes when pre-committing #1984
-
|
I'm referencing My project tree is as follows (at least to what pertains to the files listed within the error message): My My Versions: Ofc, substituting [ Can someone help? What am I doing wrong? A similar setup used to work elsewhere for me. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I came across this question while trying to solve the same problem and wanted to share something I have just discovered. If I add I don't know if this is the best/right solution but I would be interested to know what others think and why it's necessary to add it to get pre-commit to work nicely with just. Thanks. |
Beta Was this translation helpful? Give feedback.
I came across this question while trying to solve the same problem and wanted to share something I have just discovered.
If I add
pass_filenames: falseto the pre-commit hook and use a just recipe, it then works as expected. I found this article semi-helpful in understanding what was going on and although I still don't fully get it, it would appear pre-commit passing in the files is causing conflicts with Just.I don't know if this is the best/right solution but I would be interested to know what others think and why it's necessary to add it to get pre-commit to work nicely with just. Thanks.