Fork me on GitHub
#polylith
<
2024-04-28
>
ag19:04:31

Was there ever a consideration to add a distinction flag for Polylith projects? Maybe something like a .polylith empty file in the root? So the other tools could easily change their behavior? Or is there already a conventional way to tell any tool (that's not "poly") that it's dealing with a Polylith project?

seancorfield19:04:48

I don't understand what problem this would solve...? What tools are affected by whether something is a Polylith repo or not?

ag20:04:11

Well, CIDER for example gets confused with too many deps.edns scattered all around. I mean this particular problem has a simple workaround and it's not a big deal. I'm just thinking in general, hypothetically, if someone for example decides to write some automation, wouldn't it be nice to quickly tell if the repo is polylith or not?

seancorfield20:04:49

What do you mean by "CIDER for example gets confused with too many deps.edns scattered all around"?

seancorfield20:04:19

(in VS Code/Calva when you jack-in, you sometimes have to tell it to use the workspace-level deps.edn file but that's expected in any repo that has multiple subprojects with deps.edn or project.clj files)

ag20:04:38

Unless you jack-in with CIDER at the root level, it may pick a deps.edn of a brick. That point was even debated here in the channel, there's a solution for it (I need to find it). I just want to make it work only with poly project. Like I said, not a huge deal. I just thought maybe there was some convention already to mark a repo as poly.

seancorfield20:04:30

Like I say, Calva solves that by asking you which deps.edn to use instead of assuming...

jasonjckn23:04:31

the presence of workspace.edn is a good but not perfect indicator

jasonjckn23:04:30

i think the “solution” you’re referring to is one i posted , and yah jack-in it’s kind of annoying without it

ag05:04:10

Yes, I think I found your older post here in the channel. I just never found a moment to fix it in my config.

ag05:04:47

You know how it is? You can't even touch your .el files these days without someone complaining that Emacs constantly needs configuring. All the time.

jasonjckn06:04:18

@U0G75ARHC for sure, i actually reached 'fixpoint' on my emacs config, kind of bitter sweet, but i have I hard time figuring out how to improve it these days.