I've posted an issue to Polylith about warning 205 (non top namespaces): https://github.com/polyfy/polylith/issues/614 I'd be curious if anybody has a workaround for disabling this warning for a component?
I don't know what options you have, but I use these hacks/bad practices sometimes:
• Inline requires to hide from this check
• Move these namespaces to a local lib that are not in the components directory. E.g. move it to a lib dir and include it with local/root in the deps.edn of the components that need it
In your case, since everything comes from one component, maybe option two is the easiest?
Yeah, the second option might be viable as a workaround. Thanks!
Option 2 is essentially how we migrated our old monolithic repo to Polylith. We treated the legacy folders as "external libraries" via :local/root deps, and only moved code to bases as we were ready to rename nses to conform to Polylith's structure.
I documented our migration in a series of blog posts. Polylith gets introduced in Part 2: https://corfield.org/blog/2021/04/21/deps-edn-monorepo-2/
I read your series with great interest when we were deciding whether to go for Polylith. Looks like Option 2 is The Way.