tools-deps

2025-08-08T17:25:24.614249Z

(sorry I posted this in tools-build by mistake but it's probably more appropriate here) I notice when I have any deps with {:mvn/version "RELEASE"} along with :mvn/repos (datomic cloud in particular) starting a repl (with latest cli) gets extremely slow in a project with decent amount of deps (~500 line clj -X:deps tree). Is that expected/unavoidable? Or is it likely do to rate limiting from the mvn/repo? I know "RELEASE" is probably bad to use, I had it in some dev stuff, and am purging it, but kind of curious.

Alex Miller (Clojure team) 2025-08-08T17:29:35.493589Z

Release requires deps to call out to all maven repos and ask for more metadata, to discover the newest version - I think if you have particularly slow repos in your list that could obviously be slower.

dpsutton 2025-08-08T17:29:50.348919Z

how many libs have “RELEASE” in your setup?

Alex Miller (Clojure team) 2025-08-08T17:30:07.616739Z

Could be something else going on but that would be my first guess

Alex Miller (Clojure team) 2025-08-08T17:30:46.600069Z

There may also be some places where caching is avoided too

2025-08-08T17:38:19.133539Z

> think if you have particularly slow repos the only one is datomic-cloud s3 url > how many libs have “RELEASE” in your setup? adding just one RELEASE dep makes the startup time go from basically instant to about a minute Overall it's a good excuse to get rid of the RELEASE deps but if it seems worth digging into i could try to make a minimal repro at some point

Alex Miller (Clojure team) 2025-08-08T17:51:20.443219Z

The datomic s3 is particularly bad because it doesn’t even have the metadata

dpsutton 2025-08-08T17:51:52.671409Z

metadata are separate poms from the artifacts?

Alex Miller (Clojure team) 2025-08-08T17:52:34.306879Z

Neither of those, maven repos have separate files for this

👍 1
Alex Miller (Clojure team) 2025-08-08T17:53:34.525959Z

The s3 one also requires spinning up aws api which uses core.async

Alex Miller (Clojure team) 2025-08-08T17:54:36.267019Z

But the 1 minute also makes me wonder if it’s agent shutdown timeout

Alex Miller (Clojure team) 2025-08-08T17:59:33.594489Z

is it actually doing anything? take some thread dumps and see if there are any running threads - ctrl-\ on *nix, ctrl-break on windows

2025-08-08T18:09:40.719279Z

here's a thread dump. Actually it seems to be happening with just this deps.edn:

{:deps {org.clojure/clojure       {:mvn/version "1.12.1"}
        org.clojure/core.async {:mvn/version "RELEASE"}}
 :mvn/repos {"datomic-cloud" {:url ""}}
 }
when i comment out the "RELEASE" dep it's fast, with it it's slow. (deleting .cpcache betwen just in case)

2025-08-08T18:13:30.852619Z

Ahh... it seems to be related to my vpn. when i turn it off it's always fast. so could be some sort of rate limiting/anti spam thing related to the hosting