Mention keychain for handling gpg passphrases. Fixes #615.

[ci skip]
This commit is contained in:
Phil Hagelberg 2012-06-10 14:55:49 -07:00
parent d66451a4fd
commit eaa6935891
2 changed files with 14 additions and 9 deletions

View file

@ -61,14 +61,14 @@ projects may also be specified in the `:user` profile in `~/.lein/profiles.clj`:
### Authentication
Private repositories need authentication credentials. Check your
repository's documentation for details, but you'll usually need to
provide either a `:username`/`:password` combination or a
`:private-key` location with or without a `:passphrase`. Leiningen
will prompt you for a password if you haven't set up credentials, but
it's convenient to set it so you don't have to re-enter it every time
you want to deploy. You will need [gpg](http://www.gnupg.org/)
installed and a key pair configured.
Deploying and reading from private repositories needs authentication
credentials. Check your repository's documentation for details, but
you'll usually need to provide either a `:username`/`:password`
combination or a `:private-key` location with or without a
`:passphrase`. Leiningen will prompt you for a password if you haven't
set up credentials, but it's convenient to set it so you don't have to
re-enter it every time you want to deploy. You will need
[gpg](http://www.gnupg.org/) installed and a key pair configured.
First write your credentials map to `~/.lein/credentials.clj` like so:
@ -90,6 +90,11 @@ encrypted it. Due to a bug in `gpg` you currently need to use
launches, but with `gpg-agent` you only have to enter your passphrase
once per login.
On some systems you will be prompted for your GPG passphrase if you
haven't entered it. If yours does not, you can install
[Keychain](https://github.com/funtoo/keychain), which provides this
functionality portably.
### Deployment
Once you've set up a private repository and configured project.clj

View file

@ -5,7 +5,7 @@ See also https://github.com/technomancy/leiningen/issues
* For 2.0.0
** 2.0.0-final
- [X] Address chaining issues in with-profile (#632)
- [ ] Address gpg agent issues (#615)
- [X] Address gpg agent issues (#615)
- [ ] Startup performance regression (#614)
- [ ] Stale directory clutter (#589)
- [ ] Allow jars to be signed, document in deploying guide. (#519)