如果我运行如何为'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命令工作(所以我不能批量这或写一个小的脚本来做到这一点):