This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-28
Channels
- # announcements (34)
- # babashka (46)
- # beginners (187)
- # biff (2)
- # calva (5)
- # cider (10)
- # clj-http (2)
- # clj-kondo (14)
- # cljs-dev (31)
- # clojars (3)
- # clojure (43)
- # clojure-europe (25)
- # clojure-nl (1)
- # clojure-uk (3)
- # clojurescript (4)
- # clr (1)
- # cursive (1)
- # datalevin (50)
- # datomic (1)
- # emacs (12)
- # etaoin (6)
- # fulcro (7)
- # helix (21)
- # hyperfiddle (20)
- # kaocha (5)
- # lsp (14)
- # malli (10)
- # off-topic (58)
- # polylith (7)
- # portal (5)
- # reagent (39)
- # reitit (10)
- # releases (11)
- # reveal (14)
- # scittle (7)
- # shadow-cljs (58)
- # sql (8)
- # tools-deps (7)
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 ""}
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
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
.
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.OK found it in https://clojars.org/metosin/reitit
metosin/reitit {:mvn/version "0.6.0"}
It wasn't in the README.Ah yeah, in deps.edn you use the namespace of the keyword to denote the download source
The "git" is git and "mvn" is short of "maven". That is pulling a fixed version off Clojars
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
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 ?