Fork me on GitHub
#reitit
<
2023-03-28
>
Jakub Šťastný00:03:40

Hey guys, lame noobie question: how do I make reitit work with deps.edn? I have io.github.metosin/reitit {:git/sha "2a3e382df1a4b6a50ed9a7a1ca6e048f4247336f" }, but I'm getting this:

Error building classpath. Manifest file not found for io.github.metosin/reitit in coordinate #:git{:sha "2a3e382df1a4b6a50ed9a7a1ca6e048f4247336f", :url ""}

hifumi12300:03:36

Use an official release, not a commit ID. I don’t use deps.edn, but if you handle dependencies in shadow-cljs you can use [metosin/reitit "0.6.0"] . If you have leiningen installed then you can use lein search to search for these coordinates directly in the terminal, or you can use the antq plugin to detect outdated dependencies in your project in the future

Jakub Šťastný01:03:40

The thing is I run some things in CLJ and other in CLJS, so I have deps: true in my shadow-cljs.edn and I use deps.edn.

Jakub Šťastný01:03:05

Even if I use the git tag of the release, that doesn't solve the problem, as now I'm getting

Error building classpath. Manifest file not found for io.github.metosin/reitit in coordinate #:git{:tag "0.6.0", :sha "310dcd0e9933237326d2648f19b23cbbd266de8b", :url ""}
Which is the same problem.

Jakub Šťastný01:03:56

OK found it in https://clojars.org/metosin/reitit

metosin/reitit {:mvn/version "0.6.0"}
It wasn't in the README.

hifumi12302:03:05

Ah yeah, in deps.edn you use the namespace of the keyword to denote the download source

hifumi12302:03:23

The "git" is git and "mvn" is short of "maven". That is pulling a fixed version off Clojars

hifumi12302:03:56

in general you should prefer releases (i.e. mvn/version) over git/sha because those commits can go away unexpectedly, or it will be an unstable version

👍 2
oly17:03:55

Anyone able to suggest why I may be seeing this error using reitit 6

No implementation of method: :-open-model
this happens at this point in the code
:data {:coercion spec/coercion
but only when I generate an uberjar running it direct with clj works fine but when I build the uberjar I just get compilation error, any pointers on what this may be ?

oly17:03:10

okay got there seems this is some kind of build cache issue blowing away some folder locally fixed it 🙂