tools-build

2021-10-27T07:33:12.091900Z

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?

2021-10-27T14:06:49.094100Z

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

2021-10-27T14:11:49.095800Z

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

2021-10-27T14:12:26.097Z

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) 2021-10-27T14:27:45.097300Z

no changes related to that yet

2021-10-27T14:31:54.097600Z

ok, thanks! @hiredman