使用“堆栈上传"时出现GPG错误 [英] GPG error when using 'stack upload'
问题描述
运行stack upload
时出现错误:
未设置环境变量GPG_TTY(请参见man gpg-agent)
Environment variable GPG_TTY is not set (see man gpg-agent)
找不到gpg2或gpg可执行文件
Unable to find gpg2 or gpg executable
上传似乎成功,但该错误与我有关.
The upload appears to succeed, but the error concerns me.
此错误的后果是什么?有没有办法避免压制它?
What are the consequences of this error? Is there a way to avoid to suppress it?
推荐答案
As per discussion in the comments the errors are due to stack
trying to automatically GPG sign packages that are being uploaded as of version 1.1.0.
据我了解,这是特定于堆栈的功能(cabal
或hackage中没有内置程序包签名),可以使用--no-signature
的stack upload
命令行选项将其禁用.
To my understanding this is a stack-specific feature (with no package signing built into cabal
or hackage), and it can be disabled with --no-signature
command line option to stack upload
.
这篇关于使用“堆栈上传"时出现GPG错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!