tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
orestis 2020-10-13T11:09:42.341200Z

I’m seeing this in Github actions β€” when trying to do a -X β€” presumably some weirdness in Clojure version?

Execution error (FileNotFoundException) at clojure.main/main (main.java:40).
955
Could not locate clojure/run/exec__init.class, clojure/run/exec.clj or clojure/run/exec.cljc on classpath.

2020-10-13T11:25:59.341500Z

how you setup clojure-cli for your action?

orestis 2020-10-13T11:26:26.341700Z

Via… your action πŸ™‚

orestis 2020-10-13T11:26:45.341900Z

clojure -Stree gives me this

org.clojure/clojure 1.10.1
1089
  org.clojure/core.specs.alpha 0.2.44
1090
  org.clojure/spec.alpha 0.2.176
1091
org.clojure/tools.deps.alpha 0.9.816

orestis 2020-10-13T11:27:16.342100Z

And clojure --help gives me

Version: 1.10.1.708

2020-10-13T11:27:46.342300Z

could you change the version of my action?) to this DeLaGuardo/setup-clojure@master

2020-10-13T11:28:52.342500Z

new jar (exec.jar) was introduced recently as a part of clojurecli installation now it is fixed in master

2020-10-13T11:29:07.342700Z

sorry for inconvenience (

orestis 2020-10-13T11:30:19.342900Z

oh πŸ™‚

orestis 2020-10-13T11:30:57.343100Z

No worries, I was just about to dive into the source code πŸ™‚

borkdude 2020-10-13T14:57:22.343800Z

Script to update pom.xml version, if that's useful to anyone: https://github.com/borkdude/babashka/blob/master/examples/set_pom_version.clj

flowthing 2020-10-14T07:39:48.358700Z

Sure, Maven downloading the entire internet before doing anything is a time-honored tradition. πŸ™‚ It'll only do that the first time you run the command, though.

πŸ‘ 1
flowthing 2020-10-13T15:14:52.344200Z

Cool! Guess you could also do mvn versions:set -DnewVersion=1.0.1, too, though?

borkdude 2020-10-13T15:15:39.344400Z

Shhh

borkdude 2020-10-13T15:15:58.344600Z

Hehe. I didn't know that. ^ @soren.sjorup

πŸ‘ 1
borkdude 2020-10-13T15:16:40.344800Z

I guess the script becomes more useful when you want to actually parse the version and bump it.

flowthing 2020-10-13T15:19:55.345100Z

Certainly. You might be able to do that with the Maven Release plugin, too, but I’m not sure.

alexmiller 2020-10-13T15:22:03.346500Z

I think maybe I forgot to post it here, but I did a clj 1.10.1.716 prerelease this past weekend that includes a bump in many dependencies (maven resolver, aws api), and changes to make the edn reading more tolerant of unknown tagged literals in alias data

πŸ‘€ 1
πŸŽ‰ 1
2020-10-15T09:11:48.371900Z

ahh amazing I’ll make a note to give it a try at some point. Thanks πŸ™‡

seancorfield 2020-10-13T15:25:11.346700Z

I'll update my dev/test setup today to try it out, and integrate it into our work repo.

alexmiller 2020-10-13T15:25:43.346900Z

thx

seancorfield 2020-10-13T19:20:34.347900Z

So far so good. Now it's on our QA infrastructure and handling deps/building JARs all seems to be working just fine.

SΓΈren SjΓΈrup 2020-10-13T19:39:56.348500Z

The maven version downloads everything on http://apache.org to do the job for me though πŸ™‚