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?
This resulted from this:
rm -rf pom.xml
clojure -Spom
clojure -Spom
the answer to your question is certainly that it's a bug :)
1.10.1.561
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
well I will try to get a fix out for it soon
Any idea which version doesn’t have this? 2 versions back?
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
Yeah was looking for the mapping. Is there a place for tdeps -> brew version?
at the top of that changelog is a link to the other changelog
and vice versa
Perfect. Thank you!
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
Folks using Datomic’s dev-local may find that useful ^