GPG error when using 'stack upload'

社会主义新天地 提交于 2019-12-07 20:19:21

问题


When I run stack upload I get an error:

Environment variable GPG_TTY is not set (see man gpg-agent)

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/41415900/gpg-error-when-using-stack-upload

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!