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
Strip .gpg from password keys #56
Comments
Wow, you really get every error you can possibly get ;) But this time, I think it really is a pass error. passff just uses the output of In your example from #55 that was
If pass were working correctly, you would have
instead. Now, pass has had its problems with different implementations of tree, for example I have encountered that it failed stripping the .gpg extension when output was colorized. Actually, I submitted this patch While this would belong on the password-store mailing list, lets try it here quick, maybe I can help you. Is the output from |
Hrm. That does not look suspicious to me in any way :| Lets see if there are any hidden characters. What is the output of On a sidenote: how happy are you with zprezto? I'm currently using oh-my-zsh, but I'm open for alternatives ;) |
Offtopic: |
Hmm, that looks completely fine for me, I could not imagine that there would be any problem for pass parsing that. If you are not on pass 1.6.5 you could try updating it - other that that, I'm sorry, but I can't help you. You'll likely have to go to the password-store mailing list. Oh, maybe one more thing to try: does this differ from the output of Offtopic: ohmy is great, but takes a second to start. I might give prezto a go ;) |
Hmm. pass is version 1.6.5. I tried using the line from your patch:
Witchcraft. EDIT:
|
Voodoo. At least. It looks that they modified it since ( http://git.zx2c4.com/password-store/commit/src/password-store.sh?id=5f3e0b36af40c1fc5991fce76e9998313d36c6ee ) - now it is
which does work on my system well enough. What does it do on your system if you call it from the cli? |
|
Phew. Seriously, I don't see why. Maybe something strange with OSX sed or something. Try the mailing list, there's a couple of users using every strange distribution, including some BSD/OSX users on there, maybe someone knows something. Until you resolve it, for day-to-day work, you can always just revert to that old version of that line that seems to be working. PS: with the line patched, is passff finally working for you? :) |
It seems to be working after I patched lines 325 and 337 (where the same regex was used again). Thanks for your help @phryneas! I'll close this since the problem is not really passff related. |
You're welcome. I'm glad it's working now :) |
For anyone experiencing the same problem: I have submitted a patch to the mailing list, but Jason seems to be inactive at the moment, so I don't know when it will be merged. |
For future reference: this is in the passwordstore git repo by now, but not yet included in a release. |
When creating a new password in the store,
www/facebook.com
for example, pass automatically adds.gpg
extension resulting in a file namedwww/facebook.com.gpg
. passff tries to get password with a key including the .gpg extension which results in an error:Error: www/facebook.com.gpg is not in the password store.
The text was updated successfully, but these errors were encountered: