livingsocial / lein-dependency-check

A leiningen plugin for detecting vulnerable project dependencies
MIT License
33 stars 14 forks source link

Unable to connect to the database (if using outside Lein) #26

Closed vemv closed 5 years ago

vemv commented 5 years ago

Hi again,

I'm interested in using this as a library, as opposed to a Lein plugin.

Luckily, the code appears ready to use. But it fails in the following way:

image

You can see my attempt in the upper half, and its evaluation in the lower one.

Does it sound familiar?

Thanks - Victor

vemv commented 5 years ago

Hey there,

any luck with this one?

@dgknght

dgknght commented 5 years ago

@vemv, I took a quick glance at it, but I haven't had time to dig in yet. I'll see if I can't find some time to look at it this week.

vemv commented 5 years ago

This was due to Lein's dependency resolution placing some versions that the Java lib doesn't like.

And the Java lib likes to swallow many kinds of errors as Unable to connect to the database...

As a workaround, one can figure out lein-dependency-check's full dep tree (via lein pprint), and paste that into project.clj.