Fork me on GitHub
#tools-deps
<
2021-05-16
>
andy.fingerhut02:05:36

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

andy.fingerhut02:05:32

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

seancorfield02:05:05

It works just fine with Leiningen…

andy.fingerhut02:05:31

Hmm. I should have tried out more things before mentioning this. Sorry.

seancorfield02:05:19

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

seancorfield02:05:53

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

3
Alex Miller (Clojure team)03:05:50

or support some escape character that's ignored

borkdude09:05:34

I vote for the string lib name

9
👍 3