This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-14
Channels
- # announcements (1)
- # asami (3)
- # aws (1)
- # babashka (22)
- # beginners (39)
- # calva (21)
- # clj-kondo (10)
- # cljdoc (22)
- # cljs-dev (17)
- # clojure (93)
- # clojure-australia (3)
- # clojure-europe (39)
- # clojure-italy (3)
- # clojure-losangeles (17)
- # clojure-nl (14)
- # clojure-russia (2)
- # clojure-uk (5)
- # clojurescript (35)
- # community-development (7)
- # conjure (2)
- # cursive (13)
- # data-science (1)
- # datomic (25)
- # emacs (5)
- # events (4)
- # figwheel-main (2)
- # fulcro (12)
- # graphql (7)
- # gratitude (2)
- # inf-clojure (6)
- # leiningen (6)
- # lsp (49)
- # malli (13)
- # membrane (30)
- # minecraft (1)
- # pathom (3)
- # pedestal (26)
- # polylith (13)
- # portal (2)
- # quil (3)
- # random (1)
- # re-frame (13)
- # reagent (43)
- # reitit (6)
- # releases (1)
- # reveal (2)
- # ring (3)
- # shadow-cljs (30)
- # specter (5)
- # sql (8)
- # tools-build (1)
- # tools-deps (13)
- # videos (1)
Can someone help me understand the reason behind the recommendation https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#composite-profiles not to mix keywords and maps in a single composite profile?
In particular, I want to make a small addition to an existing profile where in I add a single entry to :source-paths
.
In my scenario, this seems preferable:
{:profile-1 { ... }
:profile-2 [:profile-1
{:source-paths ["extra/path"]}]}
over this:
{:profile-1 { ... }
:profile-3 {:source-paths ["extra/path"]}
:profile-2 [:profile-1 :profile-3]}
Might be they don't merge properly/behave as you'd expect. Not sure though. Also, recommendation isn't a hard no 🙂 It's more like "you have been warned"
Thanks for the response. My fear is that they won’t merge properly. Without understanding the rationale behind the recommendation, it may as well be a hard no unfortunately because I don’t know what risks I’m assuming by ignoring it.
you can use the lein-pprint plugin to see the effective merged config for a given profile https://github.com/technomancy/leiningen/tree/stable/lein-pprint
my suspicion is that it doesn't deep merge the profiles, and just overwrites the top level keys if provided