Fork me on GitHub

hey everyone! have been loving tools.deps and have had no issues until i abruptly started receiving Error building classpath. [email protected]:<org>/<lib>.git: Auth fail with no apparent configuration change. has anyone seen this? i’ve been using deps in this way for a few weeks. anyone have any ideas on how to start debugging?


for the next person: ssh-add -l may reveal that the identity previously being used is no longer there. still not sure exactly why that happened

Alex Miller (Clojure team)00:12:52

maybe your ssh-agent died and restarted?

wizard 4

must’ve. but it’s happily back at it now. i really appreciate what tools.deps has done for us. can’t say it enough—thank you for all your work on it.


when I create clojure -Spom can I tell clojure not to include org.clojure/clojure? I don't have it in my project deps.edn


clojure merges in .clojure/deps.edn


-Srepro Ignore the ~/.clojure/deps.edn config file


uhm I have in the back my head a voice that says that that does not work...


it will likely break other things if you don't include a dependency on clojure somewhere


I am trying to build a pom.xml for ClojureScript so it should be fine


yeah it still adds



are you sure something else isn't puling it in?


I was just looking at this bit of code, I’m pretty sure -Spom will include your system-wide deps too, eg /usr/local/lib/clojure/deps.edn or whatever it’s called


well, I run clojure -Srepro -Spom after having deleted deps.edn seems clean...dunno...


On the subject of pom generation, I’ve just published garamond, which rewrites the pom.xml that -Spom generates with a version ID from git tags:


maaaan that's awesome I was fiddling with scripts 😄


I still have a few features I’m working on, but it’s ready for use. It uses itself plus juxt/pack and deps-deploy to publish itself to clojars sans a project.clj


using those as well at the moment 👍


thank you so much, this will definitely simplify my scripts!


checkout clojure -Srepro -Sdescribe


oh /home/arichiardi/.local/lib/clojure/deps.edn is something I haven't created


and indeed it contains the clojure version above


tricky trick! thank you! 😄


I think the install scripts create that with the idea that it is the "system" level deps.edn


can I just get rid of :deps in there?


I don't see why not


lemme do that then 😄


or just delete the file


yeah that's right it works!

Alex Miller (Clojure team)01:12:36

note that installing / upgrading clj will rewrite that file

👍 4

Deleting the "system" level deps.edn will remove the default Maven repos and a few other things, right?


Yeah, :mvn/repos and :paths (which defaults to src)...


is tools.deps officially supported on Windows as well? I didn’t think about this when choosing it as the thing for Advent of CLJC but I didn’t hear any complaints yet


Not yet it isn't


I hear a lot of people are using WSL on Windows now


Yup I do nearly all my clojure development on windows via wsl because of that.


Is there a reliable non-brew way to get clj on OS X?

Alex Miller (Clojure team)16:12:07

we are only providing brew as a means of install, but you could basically use the linux instructions too I think - they’re both basically doing the same thing

Alex Miller (Clojure team)16:12:22

it’s essentially just putting files in the right places


Hi there. I have some problems with pulling git deps from private repo. My ssh-agent is configured and running but I'm getting USERAUTH fail every time. Is there some corner cases where it might fail that I must be aware of?


@delaguardo Using https? If so, that's a known limitation of tools.deps. This is the uber-ticket for possibly solving that


Note that it links to three related git/auth tickets.

Alex Miller (Clojure team)18:12:08

it’s a star-shaped room, so mostly corners

Alex Miller (Clojure team)18:12:28

so if you do ssh-add -l - do you see your identity?


Yes, and I can clone that repo. But for some reason jgit throwing an exception

Alex Miller (Clojure team)18:12:34

other common issues are having stuff you don’t need in ~/.ssh/config

Alex Miller (Clojure team)18:12:41

and issues with host key types

Alex Miller (Clojure team)18:12:50

the former being more common in my experience

Alex Miller (Clojure team)18:12:19

if you can dump your config here, I can eyeball it (can’t remember off-hand the offending things)

Alex Miller (Clojure team)18:12:33

but I would know it if I saw it


Hm.. everything is working on another laptop. Only one difference - my key has passphrase and it is added to agent via osx keychain

Alex Miller (Clojure team)18:12:45

that should be ok. can you dump your config file?

Alex Miller (Clojure team)18:12:26

I think it’s IdentityFile that causes problem in your config (and you should delete that line)

Alex Miller (Clojure team)18:12:56

so something like this should be sufficient:

Alex Miller (Clojure team)18:12:59

Host *
 AddKeysToAgent yes
 UseKeychain yes


Will try to do that. Thanks!

Alex Miller (Clojure team)18:12:23

the macos version you’re using on the two machines can also make a difference - they have changed the keychain integration a couple times


@alexmiller RE: the AUTHFAIL issue, I added a patch to that fixes the problem without having to remove the IdentityFile line in your config. Not sure if you saw it as it was just before Conj, but wanted to mention it.