tools-build

markaddleman 2022-06-25T14:05:51.371179Z

@seancorfield I've run into a problem with build.clj : When I include tick/tick {:mvn/version "0.5.0-RC6"} as a dep, build.clj throws an exception as part of its conflict_data_readersfunction. I'm guessing there is a reader macro from tick conflicts with a reader macro from another library. I have about 30 dependencies so it's hard to narrow down where the conflict is coming from. Do you have a suggestion on how to debug?

Alex Miller (Clojure team) 2022-06-28T19:09:31.020569Z

hey, can you give this a try with: io.github.clojure/tools.build {:git/sha "0d20256c40b5a6b6adbcbdf7d0c52cf9e22e994d"}

markaddleman 2022-06-28T19:09:55.366129Z

Thanks. I'll give it a try in a few minutes

Alex Miller (Clojure team) 2022-06-28T19:10:00.317719Z

If that looks good, I'll do a release

seancorfield 2022-06-28T19:18:54.111069Z

@alexmiller Is there a danger that will execute arbitrary code while reading/merging those files? I know that would get executed when programs are run and that's such "arbitrary code" is very unlikely in data_readers but just wondered whether it might be unexpected while building an uberjar?

markaddleman 2022-06-28T19:20:33.982089Z

@alexmiller fix looks good. thanks!

Alex Miller (Clojure team) 2022-06-28T19:20:42.548039Z

@seancorfield I am binding read-eval to false

Alex Miller (Clojure team) 2022-06-28T19:20:52.854719Z

so no

seancorfield 2022-06-28T19:20:56.457159Z

Oh, totally missed that -- sorry.

seancorfield 2022-06-28T19:21:20.907019Z

Line 87. I see it now!

Alex Miller (Clojure team) 2022-06-28T19:23:04.352079Z

ok, that is now {:git/tag "v0.8.3" :git/sha "0d20256"}

👍🏻 1
🙏 1
seancorfield 2022-06-25T16:00:01.159629Z

That exception is coming from tools.build itself, inside the core uber task -- it is not coming from my wrapper.

seancorfield 2022-06-25T16:02:49.283209Z

Since it is complaining about #? I'm guessing there's a reader conditional inside one of the data_readers.cljc files in one or more of the libraries you are including.

seancorfield 2022-06-25T16:05:53.466619Z

tools.build is reading those files as EDN -- I have no idea about reader conditional support in EDN but based on Qs on http://ask.clojure.org, it seems that they are supported in data_readers.cljc files -- see various posts there https://ask.clojure.org/index.php/search?q=data_readers

seancorfield 2022-06-25T16:06:54.794069Z

@alexmiller is best placed to provide more information but I suspect this is something that needs to be posted as an issue on http://ask.clojure.org @markaddleman and then Alex will turn it into a Jira issue if appropriate.

Alex Miller (Clojure team) 2022-06-25T16:16:22.590699Z

Yeah, I'd you file a question I'll look at it Monday

markaddleman 2022-06-25T16:32:20.675689Z

Thanks, guys. Posted question https://ask.clojure.org/index.php/12017/exception-in-ednreaderdispatchreader