使用“堆栈上传"时出现GPG错误 [英] GPG error when using 'stack upload'

查看:119
本文介绍了使用“堆栈上传"时出现GPG错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行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?

推荐答案

根据评论中的讨论,错误是由于stack

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-signaturestack 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆