如果我運行如何爲'stack sdist'設置'no-tty'而不禁用'gpg'一般?
stack sdist --sign ...
我得到
Error signing with GPG
gpg: cannot open `/dev/tty': Device not configured
no-tty
在我~/.gnupg/gpg.conf
。
但是,如果我這樣做,那麼
gpg -e ...
給
gpg: Sorry, no terminal at all requested - can't get input
是否有配置gpg
或stack sdist
,這樣我可以使用no-tty
後者而非前者的方法嗎?例如,我可以在運行stack sdist
的項目中使用本地gpg.conf
?或者是否有命令行參數可以提供給gpg
或stack sdist
,它們會有相同的效果?也許有一種方法可以將--no-tty
通過stack sdist
傳遞給基礎GPG?
作爲一個附加的約束,我需要這在一個IDE我在哪裏侷限於單一的shell命令工作(所以我不能批量這或寫一個小的腳本來做到這一點):