ancient-vegetable-10556
01/07/2022, 5:50 PMbackend/python into something that will support code in both backend/python and backend/jvm — is there an OK place to put this? I see util, which seems logically far away. Would we be ok with a new backend/common directory?bitter-ability-32190
01/07/2022, 5:51 PMhundreds-father-404
01/07/2022, 5:52 PMancient-vegetable-10556
01/07/2022, 5:52 PMancient-vegetable-10556
01/07/2022, 5:53 PMbackend/python/util_rulesancient-vegetable-10556
01/07/2022, 5:53 PMbackend/common would make a whole lot more senseancient-vegetable-10556
01/07/2022, 5:53 PMutilenough-analyst-54434
01/07/2022, 5:54 PMenough-analyst-54434
01/07/2022, 5:54 PMhundreds-father-404
01/07/2022, 5:54 PMcore/. For example, right now I'm merging coursier-resolve and generate-lockfiles - I'm doing that in core/goals/generate_lockfiles.py
You could consider core/util_rulesancient-vegetable-10556
01/07/2022, 5:55 PMbackend has no python filesenough-analyst-54434
01/07/2022, 5:55 PMancient-vegetable-10556
01/07/2022, 5:55 PMenough-analyst-54434
01/07/2022, 5:56 PMbitter-ability-32190
01/07/2022, 5:56 PMpython dir doesn't make sense 🙂 )ancient-vegetable-10556
01/07/2022, 5:56 PMancient-vegetable-10556
01/07/2022, 5:57 PMcore/util_rules seems to make sense for that stuff, now that @hundreds-father-404 has pointed it outancient-vegetable-10556
01/07/2022, 5:57 PMancient-vegetable-10556
01/07/2022, 5:58 PMbitter-ability-32190
01/07/2022, 5:58 PMbitter-ability-32190
01/07/2022, 5:59 PMancient-vegetable-10556
01/07/2022, 5:59 PMbackend/common for now, and I’ll revisit once I get around to reviewhundreds-father-404
01/07/2022, 6:02 PMcore/utils perhaps? I don't know how to distinguish between what should go in backend/common vs core/, which raises a red flag to meancient-vegetable-10556
01/07/2022, 6:03 PMbackend at all 🙂
But I can tell you that backend/common currently contains a thing that is only used by things in backendhundreds-father-404
01/07/2022, 6:03 PMutil_rules/ - it's plausible the file will eventually gain some rules, so it would be already in the right place
I wish I called the folder just utils/ instead of util_rules/ when I reorganized everything last yearbitter-ability-32190
01/07/2022, 6:03 PMancient-vegetable-10556
01/07/2022, 6:03 PMbackend exists, but I can tell you what hierarchy makes sense assuming what’s already therehundreds-father-404
01/07/2022, 6:04 PMI don’t know what belongs in backend at allCurrently,
backend/ is only where you put stuff corresponding to a particular register.py that users activate with backend_packages. (Related backends might import from other backends)
backend/common smells wrong to me because we won't have a backend/common/register.py presumablyhappy-kitchen-89482
01/07/2022, 7:29 PM