tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2020-09-17T01:03:16.284100Z

I wonder if there are legal implications when concatenating license texts?

alexmiller 2020-09-17T01:07:28.284400Z

seems dubious to me :)

☝️ 1
2020-09-17T14:13:27.286500Z

When I run clj -Spom with an existing pom that already has a <build> tag the generated <build> tag is then placed inside of the existing rather than merging the contents or just adding the <sourceDirectory>. Is this a bug or am I just doing it wrong? To be clear, it does this:

&lt;-- Contents above elided --&gt;
    &lt;/plugins&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;src/main/clojure&lt;/sourceDirectory&gt;
    &lt;/build&gt;
  &lt;/build&gt;
&lt;/project&gt;

alexmiller 2020-09-17T14:17:06.286800Z

what version are you on?

alexmiller 2020-09-17T14:17:27.287300Z

there have been bugs and fixes on this

alexmiller 2020-09-17T14:17:42.287600Z

clj -Sdescribe

2020-09-17T14:23:31.287800Z

"1.10.1.561"

alexmiller 2020-09-17T14:31:14.289400Z

yeah, that's the newest stable but the fix is not included in a newer stable version yet (it's fixed in the prereleases but you'll get a bunch of other changes with that)

alexmiller 2020-09-17T14:33:05.290Z

so you could move to a prerelease (1.10.1.681 is newest) or you could fall back to a prior stable version - 1.10.1.510 or earlier

alexmiller 2020-09-17T14:33:41.290600Z

that version was actually also broken but only for -Spom generating a new pom

alexmiller 2020-09-17T14:34:11.291100Z

or you can wait till the next stable version, hopefully coming within the next week

borkdude 2020-09-17T14:34:46.291500Z

or generate the pom with the newest unstable and then move back to the newest stable :)

borkdude 2020-09-17T14:36:38.291900Z

it's pretty easy to do this if you download the clojure shell script for a given release

alexmiller 2020-09-17T14:38:10.292200Z

I prefer "prerelease" to "unstable" :)

❤️ 1
borkdude 2020-09-17T14:45:51.292600Z

@markbastian if you're on mac, this is how you can switch versions easily:

brew install clojure/tools/clojure@1.10.1.561
brew link --overwrite clojure@1.10.1.561

borkdude 2020-09-17T14:46:18.292800Z

or if you're using linuxbrew, same

2020-09-17T15:10:09.293700Z

Cool, thanks for the help. Waiting for next week is great. I don't need to update the pom much.

borkdude 2020-09-17T16:42:18.294200Z

Would it be useful if clj-kondo did some checking on deps.edn (statically) for common mistakes? Feel free to post ideas here: https://github.com/borkdude/clj-kondo/issues/945