Fork me on GitHub
#tools-deps
<
2018-12-13
>
Nolan00:12:22

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?

Nolan00:12:17

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
Nolan01:12:07

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.

richiardiandrea00:12:00

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

hiredman00:12:28

clojure merges in .clojure/deps.edn

hiredman00:12:44

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

richiardiandrea00:12:18

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

hiredman00:12:23

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

richiardiandrea00:12:42

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

richiardiandrea00:12:05

yeah it still adds

<dependency>
      <groupId>org.clojure</groupId>
      <artifactId>clojure</artifactId>
      <version>1.9.0</version>
    </dependency>

hiredman00:12:31

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

timgilbert00:12:47

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

richiardiandrea00:12:07

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

timgilbert00:12:49

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: https://github.com/workframers/garamond

richiardiandrea00:12:23

maaaan that's awesome I was fiddling with scripts 😄

timgilbert00:12:12

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

richiardiandrea00:12:31

using those as well at the moment 👍

richiardiandrea00:12:07

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

hiredman00:12:13

checkout clojure -Srepro -Sdescribe

richiardiandrea00:12:03

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

richiardiandrea00:12:16

and indeed it contains the clojure version above

richiardiandrea00:12:37

tricky trick! thank you! 😄

hiredman00:12:44

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

richiardiandrea00:12:49

can I just get rid of :deps in there?

hiredman00:12:57

I don't see why not

richiardiandrea00:12:20

lemme do that then 😄

hiredman00:12:40

or just delete the file

richiardiandrea00:12:18

yeah that's right it works!

Alex Miller (Clojure team)01:12:36

note that installing / upgrading clj will rewrite that file

👍 4
seancorfield01:12:46

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

seancorfield01:12:42

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

borkdude07:12:40

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

dominicm09:12:18

Not yet it isn't

borkdude10:12:23

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

seancorfield13:12:43

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

4
norman16:12:20

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

delaguardo18:12:59

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?

seancorfield18:12:09

@delaguardo Using https? If so, that's a known limitation of tools.deps. This is the uber-ticket for possibly solving that https://dev.clojure.org/jira/browse/TDEPS-91

seancorfield18:12:21

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

delaguardo18:12:47

No, I'm using git@...

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?

delaguardo18:12:15

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

delaguardo18:12:46

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

delaguardo18:12:32

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

manderson22:12:43

@alexmiller RE: the AUTHFAIL issue, I added a patch to https://dev.clojure.org/jira/browse/TDEPS-49 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.