clojars

http://clojars.org discussion and “support”, see http://status.clojars.org for status.
eslachance 2017-01-28T04:12:01.000106Z

I'm having a bit of trouble with deploying to clojars (windows install). When I ran lein deploy clojars it asks for credentials then I got:

Could not sign D:\home\devel\dithcord\target\dithcord-0.0.8.jar
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
Tried to gpg --gen-key, filled in all the blanks, tried again, got:
Could not sign D:\home\devel\dithcord\target\dithcord-0.0.8.jar
gpg: cannot open tty `no tty': No such file or directory
However, I (mistakenly) did this in another project (had 2 windows opened) and it worked flawlessly (and defproject doesn't even have my org name!). anyone know how I can fix this?

danielcompton 2017-01-28T11:45:15.000107Z

I've had the no tty thing before, although I enabled it in the gnupg conf

danielcompton 2017-01-28T11:46:02.000109Z

Not sure how it would work in one terminal and not the other. Maybe environment vars got set?

danielcompton 2017-01-28T11:46:50.000110Z

> defproject doesn't even have my org name That shouldn't make any difference, GPG signing isn't tied to group IDs or artifact names

danielcompton 2017-01-28T11:47:09.000111Z

TBH, GPG is a royal pain on Windows

danielcompton 2017-01-28T11:48:00.000112Z

@eslachance If you want, you can set your :deploy-repositories to :sign-releases false, e.g. https://github.com/Day8/re-frame/blob/b05dce4ba6bdb62671437decee983e76f587efc2/project.clj#L30-L31

eslachance 2017-01-28T18:04:39.000114Z

Oh there we go. I was reading vaguely that it was possible to do that but no examples I could do