leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
vemv 2019-07-18T11:57:39.104500Z

I wonder if Clojars releases take some time to propagate to lein, or if perhaps there is some caching going on:

~ $ rm -rf ~/.m2/repository/nedap-lib ~/aaa; lein new nedap-lib aaa
Retrieving nedap-lib/lein-template/0.2.0-alpha2/lein-template-0.2.0-alpha2.pom from clojars
Retrieving nedap-lib/lein-template/0.2.0-alpha2/lein-template-0.2.0-alpha2.jar from clojars
~ $ rm -rf ~/.m2/repository/nedap-lib ~/aaa; lein new nedap-lib aaa
Retrieving nedap-lib/lein-template/0.2.0-alpha2/lein-template-0.2.0-alpha2.pom from clojars
Retrieving nedap-lib/lein-template/0.2.0-alpha2/lein-template-0.2.0-alpha2.jar from clojars
~ $ rm -rf ~/.m2/repository/nedap-lib ~/aaa; lein new nedap-lib aaa
Retrieving nedap-lib/lein-template/0.2.0-alpha2/lein-template-0.2.0-alpha2.pom from clojars
Retrieving nedap-lib/lein-template/0.2.0-alpha2/lein-template-0.2.0-alpha2.jar from clojars
~ $ rm -rf ~/.m2/repository/nedap-lib ~/aaa; lein new nedap-lib aaa
Retrieving nedap-lib/lein-template/0.2.0-alpha3/lein-template-0.2.0-alpha3.pom from clojars
Retrieving nedap-lib/lein-template/0.2.0-alpha3/lein-template-0.2.0-alpha3.jar from clojars

vemv 2019-07-18T11:58:10.105200Z

it took me 4 attempts across 10 minutes to get the alpha3 release fetched, even though it existed since the first moment

2019-07-18T12:08:22.106900Z

Yes, there can be up to a 15 minute delay there, since there is a CDN with a timeout, and I assume lein new will download the latest released version, which it determines by pulling the maven-metadata.xml file to get the list of versions

2019-07-18T12:09:02.107700Z

<http://repo.clojars.org|repo.clojars.org> is the CDN. <http://clojars.org/repo/|clojars.org/repo/> will hit the <http://clojars.org|clojars.org> server directly, so will not have that delay.

vemv 2019-07-18T12:23:47.108700Z

thanks! the cache part makes sense however, I tried again and I still had to rm even 20 minutes after a new release so they are kind of different concerns... seems a fault in lein new

2019-07-18T14:40:54.109500Z

I may not be properly remembering the TTL - it could be longer

vemv 2019-07-18T14:51:37.109800Z

I don't think it's greater than 15m, given my first snippet succeeded in less than 15m (note the rming)