This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-16
Channels
- # announcements (1)
- # aws (1)
- # babashka (14)
- # beginners (25)
- # biff (5)
- # calva (6)
- # clj-kondo (3)
- # cljsrn (7)
- # clojars (7)
- # clojure (26)
- # clojure-europe (13)
- # clojurescript (10)
- # code-reviews (1)
- # cursive (9)
- # datahike (3)
- # datomic (7)
- # depstar (5)
- # emacs (9)
- # garden (2)
- # graalvm (1)
- # helix (3)
- # jobs (1)
- # leiningen (2)
- # off-topic (1)
- # pathom (3)
- # re-frame (16)
- # reitit (3)
- # releases (1)
- # shadow-cljs (10)
- # spacemacs (6)
- # tools-deps (16)
Huh. A recent question on the Clojure Google group is fun in its implications for Clojure and its tools: Github and Maven projects whose names begin with a digit like this one: https://github.com/2captcha/2captcha-java https://search.maven.org/artifact/com.github.2captcha/2captcha-java
Quickest workaround I can think of is to create a Java wrapper lib around it that avoids Clojure needing to see any names starting with a digit
It works just fine with Leiningen…
Hmm. I should have tried out more things before mentioning this. Sorry.
It doesn’t work with deps.edn
because the EDN is invalid with the leading 2
.
you can use whatever lib name you like in deps.edn
oh, this is maven lib
If it was a :git/url
or :local/root
you mean @U064X3EF3?
well, happy to get an ask.clojure question to think about it
a wrapper wouldn't help as you'd still get it as a transitive dep
maven central doesn't have any groupIds that start with a number, but there are probably ~100 artifactIds that do
(which is a tiny percentage of maven central of course)
my initial thought would be to allow string lib names that canonicalize to a symbol
or support some escape character that's ignored