Fork me on GitHub
#tools-deps
<
2018-07-13
>
dnolen02:07:49

are :extra-deps actually merged? like if in an alias I want :exclusions but not otherwise?

Alex Miller (Clojure team)02:07:17

I’m not sure I understand what you’re asking but it sounds like :override-deps

dnolen02:07:32

oh! cool 🙂

martinklepsch12:07:36

Not sure if a bug but clj -Sdeps '{:deps {org.asciidoctor/asciidoctorj {:mvn/version "1.5.6"}}}' -Spath doesn’t pull in the dependencies below (lein/boot do)

[org.asciidoctor/asciidoctorj "1.5.6"]
├── [com.beust/jcommander "1.35" :scope "runtime"]
└── [org.jruby/jruby-complete "1.7.26" :scope "runtime"]

dominicm12:07:01

Runtime scope dependencies aren't or weren't brought in. I think they are now.

martinklepsch11:07:53

Do I need to manually upgrade tools-deps for that to take effect somehow?

martinklepsch11:07:57

sorry noob q 😄

dominicm12:07:39

I guess you bump your version? Not sure when the last release was

dnolen21:07:18

I guess there’s no error on non-existent alias?

Alex Miller (Clojure team)21:07:19

Ha, I just committed that within the last hour :)

Alex Miller (Clojure team)21:07:28

Will be in next release

bananadance 4
rberger22:07:40

If one’s ssh key for github is not id_rsa or any of the default ssh names, do you need to specify the name somewhere in deps.edn? I can git clone a private dependency repo with my keys in the ssh-agent, but the clojure command always ends up with:

rberger22:07:43

Error building classpath. [email protected]:omnypay/atlas-core.git: USERAUTH fail
org.eclipse.jgit.api.errors.TransportException: [email protected]:omnypay/atlas-core.git: USERAUTH fail

rberger22:07:03

This is on macos High Sierra and Clojure 1.9.0.381

ghadi23:07:09

This is an awful answer, and it's a bit of a mess, and I'd really like to fix it once and for all by shelling out to git directly (golang does this): @rberger for now, make sure the environment SSH_AUTH_SOCK is set to your ssh-agent's socket path move any extraneous Identity keys in your .ssh/config out of the way

ghadi23:07:21

JGit / JSch tries to read them and gets confused

ghadi23:07:39

(I use ed25519 keys, which are common these days...only supported via the ssh agent)

rberger23:07:28

Thanks! It looks like I had some things in the ~/.ssh/config that was causing the problem. Might be good to at least mention this in the docs (https://clojure.org/reference/deps_and_cli)

rberger23:07:52

Though the info in the config file is the correct path to the IdentifyFile.

Host 
  User git
  Port 22
  HostName 
  IdentityFile ~/.ssh/github.rsa
  AddKeysToAgent yes
  TCPKeepAlive yes
  IdentitiesOnly yes