This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-03
Channels
- # aleph (8)
- # announcements (3)
- # architecture (47)
- # babashka (22)
- # beginners (22)
- # chlorine-clover (2)
- # cider (15)
- # clj-yaml (6)
- # cljs-dev (3)
- # clojure (76)
- # clojure-austin (2)
- # clojure-europe (16)
- # clojure-france (10)
- # clojure-gamedev (11)
- # clojure-norway (28)
- # clojure-sweden (4)
- # clojurescript (32)
- # conjure (1)
- # datahike (2)
- # datomic (6)
- # events (9)
- # graalvm (8)
- # gratitude (5)
- # honeysql (8)
- # humbleui (2)
- # hyperfiddle (37)
- # jobs (1)
- # polylith (4)
- # re-frame (14)
- # releases (2)
- # rum (9)
- # sci (9)
- # scittle (8)
- # shadow-cljs (9)
- # spacemacs (4)
- # sql (10)
- # xtdb (24)
Hi everyone I'm trying to run some tests but I'm getting this error:
Error 101: Illegal dependency on namespace commons.serdes.content-negotiation in webserver.server. Use commons.core instead to fix the problem.
Is there a way to ignore this error? I have a really small component to store all small things common between components like json handling. If it's not possible, I would need to put everything being exporter through commons.core
namespace or create a component for each thing that would be included in the commons component, like components/serdes
and components/http-client
Edit: Also Idk if it would go against polylith architecture principles.You have to put code that you need to access from other bricks, in the interface. If you don't want to put everything in a single interface namespace, you can use sub-interfaces also, like serdes.interface.stuff
. See an example https://github.com/polyfy/polylith/tree/master/components/util/src/polylith/clj/core/util/interface.
From tests, you are allowed to access any namespace.