Fork me on GitHub
#tools-build
<
2021-10-27
>
amorokh07:10:12

Hi, I’ve started to use tools.build for building uberjars for my services/apps but occasionally building fails with different errors like

Syntax error (IllegalAccessError) compiling at (clojure/tools/reader.clj:1:1).
read-char is not public
or
Syntax error (IllegalAccessError) compiling at (clojure/tools/reader.clj:1:1).
indexing-reader? does not exist
I am typically building in a dockerfile if that matters and typically the build succeeds when I retry. Are errors like these something anyone recognize?

hiredman14:10:49

There is/was a potential race condition in how the S3 wagon related bits load code which result in that kind of thing

hiredman14:10:49

There is an http://ask.clojure.org question that goes into specifics, which I cannot find, but if you require clojure.tools.deps.alpha.util.s3-transporter at the top of your build.clj it will likely fix it

hiredman14:10:26

It may also be fixed in more recent versions of tools.deps if you aren't on the most recent version

Alex Miller (Clojure team)14:10:45

no changes related to that yet