Replies: 4 comments
-
I guess we're not using the "right" binary on Windows when there are multiple GPG installations. I think we should look into adding the path to the gpg binary in our Which shell / terminal were you using, out of curiosity? |
Beta Was this translation helpful? Give feedback.
-
I used git-bash terminal. |
Beta Was this translation helpful? Give feedback.
-
running into a similar issue I believe. apparently git comes with gpg bundled, and these have different locations they check for gpg data. this can be overridden, as mentioned in one of the answers in the linked post |
Beta Was this translation helpful? Give feedback.
-
This fixed my issue. Putting the command out there so that it's easier to find: |
Beta Was this translation helpful? Give feedback.
-
Summary
I'm a long time user of
pass
recently made the switch togopass
.I acknowledge that this is not a
gopass
issue.I'm trying to get help to debug why I get this error from gpg (gitter, slack, discourse, "stackoverflow" question, etc, could have worked better for a question, but I couldn't find links to those, sorry)
"manual" decrypt works as intended, I think this confirms my GPG setup is correct.
Decryption with
gopass
failsI checked the
GOPASS_DEBUG_LOG
file, it wasn't helpful. I tried adding more flags togpg.go#defaultArgs
, I only got more verbose messages.You should know I'm not a regular Windows user I copied my
~/.gnupg
and~/.password-store
from a Mac.Please help I'm stuck.
Steps To Reproduce
In a fresh window machine, get
gopass
from source and compile withgo build
, installgpg4win
with chocolatey.Expected behavior
gopass
decrypts my password withgpg
on Windows.Is there any weird behavior on Windows that I'm not aware?
Environment
gopass
fromgo build
gpg
fromchoco
gpg4win
(also tried installer for gpg4win)gpg --version
->2.2.29-unknown
Additional context
update: I just removed the GPG4WIN installation and I have a working setup now. I guess git for windows installation contains a working installation of GPG.
gopass
was executing GPG4WIN binary andgpg
has been mapped all the time to/usr/bin/gpg
which explains why my "manual" decryption works, I'm also guessing GPG4WIN doesn't read~/.gnupg
config from the Git-Bash environment.Beta Was this translation helpful? Give feedback.
All reactions