Fork me on GitHub

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:


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.

Alex Miller (Clojure team)02:05:31

you can use whatever lib name you like in deps.edn


If it was a :git/url or :local/root you mean @U064X3EF3?

Alex Miller (Clojure team)02:05:51

well, happy to get an ask.clojure question to think about it

Alex Miller (Clojure team)03:05:13

a wrapper wouldn't help as you'd still get it as a transitive dep

Alex Miller (Clojure team)03:05:05

maven central doesn't have any groupIds that start with a number, but there are probably ~100 artifactIds that do

Alex Miller (Clojure team)03:05:56

(which is a tiny percentage of maven central of course)

Alex Miller (Clojure team)03:05:18

my initial thought would be to allow string lib names that canonicalize to a symbol

Alex Miller (Clojure team)03:05:50

or support some escape character that's ignored


I vote for the string lib name

👍 3