2

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?

Community
  • 1
  • 1
orome
  • 45,163
  • 57
  • 202
  • 418
  • 1
    Take a look at https://www.fpcomplete.com/blog/2016/05/stack-security-gnupg-keys AFAIK signing packages is an optional, stack-specific feature, if you don't wish to do that you can pass `--no-signature` command line option to `stack upload`. – ppb Jan 01 '17 at 17:04
  • @ppb: That looks like an answer. – orome Jan 01 '17 at 17:36

1 Answers1

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.

ppb
  • 905
  • 6
  • 9