This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-30
Channels
- # announcements (12)
- # babashka (25)
- # biff (30)
- # cherry (34)
- # cider (46)
- # clj-kondo (23)
- # clojure (37)
- # clojure-berlin (6)
- # clojure-europe (12)
- # clojure-nl (4)
- # clojure-norway (6)
- # clojure-uk (2)
- # clojurescript (8)
- # conjure (1)
- # cursive (4)
- # data-science (11)
- # datalevin (12)
- # datascript (15)
- # emacs (2)
- # events (1)
- # fulcro (14)
- # graalvm (16)
- # gratitude (23)
- # honeysql (11)
- # jobs (2)
- # jobs-discuss (14)
- # kaocha (1)
- # leiningen (8)
- # nbb (45)
- # off-topic (7)
- # portal (8)
- # re-frame (9)
- # releases (2)
- # shadow-cljs (24)
- # squint (5)
- # tools-build (17)
- # tools-deps (7)
- # vim (5)
I have been using :target-path "target/%s"
and building an uberjar, it was until recently writing to target/uberjar/<uberjarn-name>.jar
. Due to what I assume is an updated version of lein
via the clojure:latest
Docker container, it is now writing to target/default+uberjar/<uberjarn-name>.jar
. Is this due to a recent change in lein
? Is there any recommended way of ensuring that this path is stable/predictable? At least I will pin to a specific clojure/lein container version to try to avoid changes in future. Thanks all 🙂
Profile is as follows:
:profiles {:uberjar {:aot :all
:uberjar-name "<uberjar-name>.jar"
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]}})
probably that Lein change is a) and improvement (now it seems more accurate to me) and b) a once-every-5-years change probably I'd recommend no action. You can check out the CHANGELOG or commit history to ensure that the new behavior is in fact intended and pinning versions in CI pipelines is always a good idea :)
Ah apparently unintended https://codeberg.org/leiningen/leiningen/issues/9
But yes, the moral of the story for me is to pin versions in CI 🙂
There must be some law of problem solving that dictates that one immediately finds some enlightening information only after one has given in and asked around :D
Yeah I also wouldn't expect the default profile to be part of an uberjar build. So that was suspect
FYI pinning to clojure:lein-2.9.8-alpine
avoids the issue so presumably it is a bug introduced in 2.9.9/2.9.10