Fork me on GitHub
#tools-deps
<
2020-09-17
>
deactivateduser01:09:16

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

Alex Miller (Clojure team)01:09:28

seems dubious to me :)

☝️ 3
markbastian14:09:27

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:

<-- Contents above elided -->
    </plugins>
    <build>
      <sourceDirectory>src/main/clojure</sourceDirectory>
    </build>
  </build>
</project>

Alex Miller (Clojure team)14:09:06

what version are you on?

Alex Miller (Clojure team)14:09:27

there have been bugs and fixes on this

Alex Miller (Clojure team)14:09:14

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)

Alex Miller (Clojure team)14:09:05

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

Alex Miller (Clojure team)14:09:41

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

Alex Miller (Clojure team)14:09:11

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

borkdude14:09:46

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

borkdude14:09:38

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

Alex Miller (Clojure team)14:09:10

I prefer "prerelease" to "unstable" :)

❤️ 3
borkdude14:09:51

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

brew install clojure/tools/[email protected]
brew link --overwrite [email protected]

borkdude14:09:18

or if you're using linuxbrew, same

markbastian15:09:09

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

borkdude16:09:18

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