This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-29
Channels
- # babashka (54)
- # beginners (24)
- # biff (23)
- # calva (14)
- # cider (20)
- # clj-kondo (17)
- # clojure (65)
- # clojure-europe (14)
- # clojure-norway (177)
- # clojure-uk (1)
- # clojurescript (11)
- # core-typed (4)
- # cursive (10)
- # datomic (28)
- # emacs (21)
- # gratitude (33)
- # honeysql (8)
- # hyperfiddle (57)
- # introduce-yourself (7)
- # jobs (5)
- # leiningen (17)
- # life (4)
- # lsp (6)
- # meander (3)
- # missionary (5)
- # pathom (2)
- # polylith (4)
- # re-frame (7)
- # releases (2)
Hi guys! I have two components C1
and C2
. C2
use C1
. It’s allowed to define in the deps.edn
of C2
the usage of C1
? or it’s not and I must define C1
and C2
on the project
You should not specify any components in a component's deps.edn
file. Components are only specified in the project's deps.edn
files.
@U1G0HH87L, interesting, can you elaborate more on this? I thought it'd be easier to know component dependencies from it's deps.edn even if the dependencies are other components
Bases and components don't know about concrete components, they only know about interfaces
. It's the projects that know which components to include and that's where things are connected. You can have more than one component that implements the same interface (e.g. a1
and a2
) and because you don't specify which concrete components your bricks depend on, you can swap implementation (if you like) from e.g. a1
to a2
in a project, because both implements the same interface, e.g. a
.