I’ve recently started consuming an old XML lib that ceased development on a SNAPSHOT version ten years ago. I also have a :mvn/repos entry for datomic-cloud.
Now when Clojure CLI processes my deps.edn the delay and noise from checking for updated SNAPSHOTs from datomic-cloud is substantial (interestingly, I don’t see that noise from another custom repo I have configured). Is there any way in deps.edn to reduce the frequency of checking for SNAPSHOT updates? They’re not checked every time clojure runs, but statistically much too often in my case.
If it’s not possible in deps.edn, can maven be configured to adjust the frequency? I’ve tried hacking around in ~/.m2/settings.xml using https://maven.apache.org/ref/3.9.1/maven-settings/settings.html#settings as a guide, but it seems to be ignoring all my attempts.
@alexmiller Unfortunately I have many transitive SNAPSHOT dependencies (due to the otherwise excellent io.xapix/paos lib). I essentially set the value of my :mvn/repos to:
{"datomic-cloud" {:url ""
:snapshots {:enabled false}}}
and the impact to the noise and delay on executing clojure and clj was dramatic. Feedback = ❤️ .with recent releases you can set the update frequency in the :mvn/repos key
{:mvn/repos
{"datomic-cloud" {:url "whatever"
:snapshots {:enabled false}
:releases {:enabled true
:update :daily}}}}
^^ really just disabling snapshots should help the mosthttps://clojure.org/reference/deps_and_cli#_maven for more docs
Awesome. Thanks, @alexmiller.
Not many people have used this yet, so interested in feedback