Fork me on GitHub
#tools-deps
<
2021-08-25
>
kenny00:08:38

Prefixing this with: I don't believe this to be any issue with tools.deps. Has anyone seen "Premature end of Content-Length delimited message body" before? Maven issue with this particular artifact? At the moment, I can consistently reproduce this.

clj -Srepro -Sdeps '{:deps {com.ibm.icu/icu4j {:mvn/version "68.2"}}}'
Downloading: com/ibm/icu/icu4j/68.2/icu4j-68.2.jar from central
Error building classpath. Could not transfer artifact com.ibm.icu:icu4j:jar:68.2 from/to central (): Premature end of Content-Length delimited message body (expected: 11,963,048; received: 569,344)

Alex Miller (Clojure team)01:08:24

If you delete that artifact from your ~/.m2 and re-get the dep, is it repeatable?

Alex Miller (Clojure team)01:08:02

That sounds like a server side maven central thing but not sure

Joshua Suskalo17:08:22

Does the :fn key need to be present in the :deps/prep-lib map if the alias that will be run already has an :exec-fn specified?

Joshua Suskalo17:08:37

Ah, I see, so prep-lib doesn't support an alias which has a function and args specified. That's unfortunate.

Joshua Suskalo18:08:32

I guess that means I'll be publishing an update to americano to have a function entrypoint for prep lib that will read the deps edn from the current directory and use that to trigger the normal compilation.

Alex Miller (Clojure team)18:08:43

it's (effectively) run with -T which requires a fn

Joshua Suskalo19:08:14

Thanks. 🙂