Fork me on GitHub
#tools-deps
<
2018-08-03
>
emergence21:08:18

@alexmiller (or anyone else in the know) - I'm pulling down a company Clojure library from a private github repo via deps.edn -- had to tweak a few things to get auth to play nice, but now I have another issue: is there a way to indicate which jar file it will use?

emergence21:08:44

I have one that will include test dependencies and am looking to use that version instead

ghadi21:08:46

what did you tweak for Auth @emergence?

emergence21:08:29

I had to comment out my IdentityFile line in .ssh/config

ghadi21:08:41

yeah this is a known issue

ghadi21:08:57

we have a potential resolution for a host of auth related issues

emergence21:08:35

I saw there is an open bug around this

Alex Miller (Clojure team)21:08:29

deps.edn does not have any way to include test scoped transitive deps

emergence21:08:07

Sorry I wrote incorrectly, I meant test namespaces not transitive deps

Alex Miller (Clojure team)21:08:37

I was confused by you saying jar file above

Alex Miller (Clojure team)21:08:44

in tandem with github repo

Alex Miller (Clojure team)21:08:02

or rather, I am still confused. perhaps you can back up. :)

ghadi21:08:57

we have a potential resolution for a host of auth related issues

emergence21:08:30

so in my deps.edn I have something like

mycompany/depname {:git/url "[email protected]:reifyhealth/depname.git"
                                        :deps/manfiest :deps
                                        :sha "..."}

emergence21:08:56

And forgive me if I'm overlooking something silly I'm trying tools.deps.alpha for first time s

emergence21:08:59

I want to access test namespaces from depname

Alex Miller (Clojure team)21:08:43

in that project’s deps.edn, you could include :paths ["src" "test"]

Alex Miller (Clojure team)21:08:49

but there is no way to do that externally

Alex Miller (Clojure team)21:08:06

so I think my answer is still, you can’t do that

emergence21:08:11

That's still helpful -- the project is still running off a project.clj file so I can see about merging in a secondary deps.edn for my purposes.

Alex Miller (Clojure team)21:08:42

it is possible to use a :deps/root key to point to a subdir holding a deps.edn that included the test, but that’s likely to confuse people

emergence21:08:07

If I did :deps/root "test" and stuffed the deps.edn in test/ do you think that would work?

emergence21:08:39

and then specified the appropriate relative paths

emergence21:08:52

Either way I'll play around with it and see what works for my team -- thanks for spending a few mins chatting on this 🙂