-
Notifications
You must be signed in to change notification settings - Fork 15
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
no pre-commit file is created in the .git/hook directory #105
Comments
Hello ! First of all, I think it is the first time I see you around on the repository, so thanks for using Mookme :) I tried the setup script as provided in the documentation, and things went fine to me: # Initialize a repo
mkdir test
cd test
git init
npm init -y
# Install mookme and init
npm install -D @escape.tech/mookme
npx mookme init # Select the pre-commit step in the prompter
cat ./.git/hooks/pre-commit # should be fine My very first guess is that you did not run |
I just tried
Despite what the logs claim, only |
Hey @braincore, I'm just finishing a business trip this week, and won't have time to look into that matter by then end of the week. I'll do my best to circle back at you next week when I take a deeper look into why not every file is created. If ever time is an issue for you, feel free to look around and open a pr, I will find time to have it reviewed :) Still, it would help me a lot to grab more context to reproduce the problem, could you provide me with some informations on your platform please ? Like an OS type, or a script I could execute ? |
@LMaxence Looking at the output I provided earlier, I'm guessing this was a case of user (me) error. The output claims to be creating FWIW, this was on a Ubuntu 22.04 machine running the initial setup I just tried a couple permutations to reproduce the error in a new folder ( Everything else in my setup went smoothly so thank you for creating this! |
I ran into this issue using the warp terminal. After going through the source - I was able to run npx mookme init --added-behaviour "exit" --only-hook --skip-types-selection --yes Which uses the hooks in |
@uncledru |
I have followed the steps in at https://mookme.org/. However, the script was not triggered when committing files. I had to look through the code, and created the
pre-commit
file manually:Any idea why the file was not created?
The text was updated successfully, but these errors were encountered: