Welcome! Please see the About page for a little more info on how this works.

+2 votes
in tools.deps by

I'm trying to resurrect an old monzo API wrapper for use in a project, so far I've forked the old repo to https://github.com/slifin/monzo-clj and now I would like to use my forked version in a Datomic cloud project

I've added the following keys to my deps.edn (stripped for clarity):

:deps {
    slifin/monzo-clj {:git/url "https://github.com/slifin/monzo-clj" :sha "54d925c23f62e914fa9e6fa5eb22c3e7040eb304"}}
 }

but everytime I run clj on the terminal I get this error

Error building classpath. Manifest type not detected when finding deps for slifin/monzo-clj in coordinate {:git/url "https://github.com/slifin/monzo-clj", :sha "54d925c23f62e914fa9e6fa5eb22c3e7040eb304"}

What am I doing wrong?

1 Answer

+8 votes
by
selected by
 
Best answer

It means the Git repository does not contain a deps.edn or pom.xml file (so tools.deps cannot figure out dependencies).

If you control the repo -- or a fork of it -- you can simply add a deps.edn file with the dependencies copied from project.clj.

Otherwise you can tell tools.deps to assume it is a deps.edn project with empty dependencies by adding :deps/manifest :deps -- although you will have to add any transitive dependencies from that project into your local deps.edn file.

...