-
-
Notifications
You must be signed in to change notification settings - Fork 9
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 hook reinstalls poetry, fails, and aborts. No commits possible. #24
Comments
I figured out what happened to me. What follows is information for anyone else who happen fall into the same crack; there's no need for this issue to remain open once it's been read. Host: Windows 10. Pelican python environment managed by conda. Compressed from many sessions over several weeks, the setup resembled:
Begin hacking to get pelican-search working (see my Stork posts). ...and all hell breaks loose. Suddenly I'm preventing from making any commits at all on my local machine. On every commit attempt the pre-commit git hook starts re-installing poetry, invoke, and a bunch of dependencies. This takes about a minute; inside I'm cringing at the extra bandwidth consumption. Some kind of problem is encountered, all the installs are rolled back, and the commit is aborted. I'm dead in the water, totally blocked. So what is going on??
I installed the recommended dev environment inside the conda pelican environment. Nothng wrong with that, in fact it's good practice. However now it's time add last piece, the stick of dynamite:
That's right. I'm using a git gui outside of the conda managed environment and it knows nothing about the pelican plugin dev additions. Dutifully it calls the pre-commit check, does not find the requred tools, attempts to install them who-knows-where, can't, and gives up. Ok, so, now what? Well the choices seem to be:
|
Hey Matt. Sorry to hear about your troubles. Since I don't use Windows, Conda, or Git Extensions, I am unfortunately ill-equipped to provide guidance or feedback here. That said, I suspect the latter of the choices listed above is probably your best bet. As someone who struggled with Git for a long time, I have finally come to understand its foibles and now quite appreciate what I can do with it at the CLI level. If you choose that option, let me know if I can be of assistance! 😊 |
Thanks Justin. I'm actually moderately ok with git cli for most things I need to do now. I harbour a prejudice it's probably time to let go of, fed by many instances of now historical epxpeditions to comb Stack Overflow et al for getting myself out of mess X, giving up and just blowing away the repo and starting over. ;-) |
An understandable prejudice, to be sure. I had similar experiences when I first started out, but I haven't had to blow away a repo in over a decade, so at this point I think I've got it down. 😉 |
...something in that recipe[*] is seriously at odds with my system. Now every commit tries to reinstall poetry, invoke, etc., then encounters a compatbility error and aborts. I'll follow up with a seperate issue after I've had a chance to try and understand what's going on.
Originally posted by @maphew in #22 (comment)
The text was updated successfully, but these errors were encountered: