tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
alexmiller 2021-05-20T00:44:01.018Z

make-classpath-map

alexmiller 2021-05-20T18:27:27.029200Z

A dev version of the Clojure CLI 1.10.3.849 is now available • Adds support for a trailing map in -X calls (similar to 1.11 trailing map to vararg calls) • Updates all Maven deps to latest (maven-resolver 1.7.0, maven core 1.8.3) - https://maven.apache.org/docs/3.8.1/release-notes.html ◦ CVE-2020-13956 - bumps deps on Apache HttpClient (unlikely this would actually be affecting you) ◦ CVE-2021-26291 - potential problems accessing Maven repos, changes of note: ▪︎ http repo access is now blocked by default (to avoid possible MITM). tools.deps has always used https repos in the default repository list (central and clojars) but you could see some impact here if you are currently specifying a http Maven repo (but don't do that) ▪︎ concerns about repository urls getting "hijacked" by transitive pom deps (or their super poms) that declare their own different urls. afaict they made no changes here, but did clarify how repos are resolved on https://maven.apache.org/guides/mini/guide-multiple-repositories.html#repository-order. From a deps perspective, we only use repositories declared in the top-level deps.edn (if transitive deps need a custom repo, you will need to add it at top-level too). For tools.deps use of pom dependencies, we are providing the repos of the top deps.edn file (which should always put Maven Central and Clojars first), then deferring to Maven for the rest.

👍 5
alexmiller 2021-05-20T18:27:52.029700Z

Anyhow, would appreciate anyone trying this, particularly if you use repositories other than central and clojars.

borkdude 2021-05-20T18:34:17.030500Z

> Adds support for a trailing map in -X calls (similar to 1.11 trailing map to vararg calls) Can you give an example of what this looks like on the command line? -X:foo :a 1 :b 2 '{:c 3}' ?

alexmiller 2021-05-20T18:34:53.030700Z

yep, that

borkdude 2021-05-20T18:35:09.031200Z

cool

alexmiller 2021-05-20T18:35:12.031400Z

haven't added the doc yet as this is not a stable release

alexmiller 2021-05-20T18:36:05.031600Z

maybe I can share that

alexmiller 2021-05-20T18:36:40.032100Z

still a couple things to fix there

alexmiller 2021-05-20T18:37:37.032400Z

and of course, trailing can be the only arg

alexmiller 2021-05-20T18:37:57.032700Z

clj -X clojure.core/prn '{:a 1 :b 2}'

👍 2