feat(core): Allow GPG parameters and ignore git hooks.#60
feat(core): Allow GPG parameters and ignore git hooks.#60ShogunPanda wants to merge 1 commit intonodejs:mainfrom ShogunPanda:custom-params
Conversation
Opened #71 for this.
What additional flag are you passing? Would that need some documentation?
I'm not sure about this, especially as it's written, it would hide by default the error output, which could make debugging very hard. I've opened nodejs/node-core-utils#941 so all of stderr can be ignored. |
Since I was having issue in typing my password, I went to use file based input with things like:
That will make the trick. Do you want me to update this PR to only retain n.2 so we can land this? |
As the GPG docs say, that's "doing things one usually doesn’t want to do", putting your passphrase into a file sounds less than ideal. I'm not too keen of adding a Caritat specific env variable, unless it's some kind of already established convention. Do you know of any program that does that for #!/bin/sh
exec gpg --pinentry-mode=loopback --passphrase-file=/tmp/caritat-passphrase "$@" |
|
Yes, creating a custom wrapper and using via |
This PR introduces the follow changes:
-nwhen committing votes. This avoids to being unexpectedly blocked by custom hooks.CARITAT_GPG_PARAMSenvironment variable to customize GPG when decrypting the ballot. This is to handle exotic configurations (like mine where the spinner ingit node votewas interfering with password prompt)CARITAT_SHOW_ERRORSenvironment variable to explicitly opt-in for errors showing. This is to cleanup the output when decrypting the ballot since all but one promises are expected to fail.