tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
imre 2021-03-22T13:46:55.138700Z

Should gitlibs be nuked when upgrading from clojure tools 1.10.2.796 to 1.10.3.814?

borkdude 2021-03-22T13:58:25.139300Z

It's always safe to nuke those, so if in doubt, go ahead I would say

imre 2021-03-22T14:19:22.140400Z

I know it's safe 🙂 just wanted to know if it is necessary or recommended. I'd prefer to skip doing it on all the build agents in case it isn't needed

seancorfield 2021-03-22T15:31:22.143500Z

I think if you went through the incremental prerelease builds you could get into a bad state but 814 fixed that. Or at least fixed part of that. I would upgrade to 814 and see if a build fails. It's pretty obvious if the gitlibs cache is broken.

1
borkdude 2021-03-22T17:39:39.145500Z

I'm trying to get deps.clj up to date with the latest and greatest tools.deps / clojure bash. I tried coming up with a test that would have failed under the old clj and works with the newest clj with regards to the corfield comma / whitespace problem. So I tried this:

clj -Srepro -Sdeps '{:aliases {:space {:jvm-opts ["-Dfoo=\"foo bar\""] }}}' -M:space -e "(prn (System/getProperty \"foo\"))"
The string prints as "\"foo bar\"". 1. Should it? 2. Is this a representative test?

borkdude 2021-03-22T18:51:10.146300Z

You can also do, deps.edn:

{:aliases {:space {:jvm-opts ["-Dfoo=foo bar"] }}}
Not sure if that's how it should be done. Just looking for a good test case.

borkdude 2021-03-22T18:53:12.146800Z

Both seemed to fail with 1.10.2.781

borkdude 2021-03-22T19:42:08.147200Z

I think I caught up with 814 now. Thanks! :duckie:

grzm 2021-03-22T21:13:28.151400Z

Good afternoon, all! What’s the syntax for specifying multiple Java properties at the command line using -J For example, I want to specify a custom truststore using -<http://Djavax.net|Djavax.net>.ssl.trustStore=/path/to/truststore and -<http://Djavax.net|Djavax.net>.ssl.trustStorePassword=changeme. Space-separated like this?

clojure -J'-Djavax.net.ssl.trustStore=/path/to/truststore -Djavax.net.ssl.trustStorePassword=changeme' -M http-test.clj

thheller 2021-03-22T21:14:59.152Z

@grzm a -J for each I believe, -J-Dfoo -J-Dbar

1