This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-21
Channels
- # aws (14)
- # babashka (35)
- # beginners (163)
- # boot (2)
- # calva (5)
- # cider (30)
- # clojure (143)
- # clojure-colombia (1)
- # clojure-europe (5)
- # clojure-nl (11)
- # clojure-spec (1)
- # clojure-uk (16)
- # clojurescript (71)
- # community-development (2)
- # conjure (1)
- # cursive (6)
- # datomic (30)
- # duct (4)
- # figwheel-main (11)
- # fulcro (28)
- # graalvm (3)
- # graphql (23)
- # hoplon (36)
- # jackdaw (24)
- # kaocha (16)
- # lambdaisland (1)
- # leiningen (4)
- # luminus (3)
- # meander (4)
- # observability (1)
- # off-topic (10)
- # pathom (5)
- # re-frame (27)
- # reitit (7)
- # remote-jobs (1)
- # sci (17)
- # shadow-cljs (22)
- # spacemacs (14)
- # sql (61)
- # testing (3)
- # tools-deps (27)
- # vim (2)
- # xtdb (18)
- # yada (2)
Any idea why clojure -Spom
would sometimes result in duplicate entries? e.g., something like this:
...
<build>
<build>
<sourceDirectory>src</sourceDirectory>
</build>
<build>
<sourceDirectory>src</sourceDirectory>
</build>
</build>
...
are you making a new one or syncing?
and which clj version?
the answer to your question is certainly that it's a bug :)
This is my deps.edn
{:paths ["src"]
:aliases {:jar {:extra-deps {seancorfield/depstar {:mvn/version "1.0.94"}}
:main-opts ["-m" "hf.depstar.jar" "s3-mvn-upload.jar"]}}}
there was a change to this in the prior version, which I actually have found was bad and a pretty subtle bug. I have a fix for it but haven't gotten it into master yet.
is it ok after the first clojure -Spom
?
No. It creates this:
<build>
<build>
<sourceDirectory>src</sourceDirectory>
</build>
</build>
Second run:
<build>
<build>
<sourceDirectory>src</sourceDirectory>
</build>
<build>
<sourceDirectory>src</sourceDirectory>
</build>
</build>
yeah, I know why it's doing this
check the changelog
https://github.com/clojure/tools.deps.alpha/blob/master/CHANGELOG.md
prior was tools.deps 0.8.677 which corresponds to 1.10.1.510
use https://github.com/clojure/homebrew-tools#version-archive-tool-releases to fall back on mac
at the top of that changelog is a link to the other changelog
and vice versa
there was a bug in initial gen in the prior version too though so you may not be any happier
Haha alright. At some point it worked, at least for my simple use case, since I’ve been using -Spom to deploy libs to clojars. Or perhaps I’ve just never noticed it generating something incorrect 😬
Luckily http://clojars.org doesn't care I guess 🙂
For those wanting to simply upload a jar file to a S3 Maven repo, I created a small Clojure lib to do (some of) the right things. You can paste it into a bb script if you want it to go a bit faster. https://github.com/kennyjwilli/s3-mvn-upload