polite-art-32636
04/17/2023, 5:51 PMpants tailor ::
to boostrap my repo, I end up with a plethora of BUILD
files in every subfolder of all the apps we have (our devs love folders for module separation). Is this really best practice? How do I convince my devs that all these files are necessary and the best practice? especially when they will never be customized or touched after they're created. Can I create one or two per service that would contain all my information necessary for building pex, environments, docker images, etc?enough-analyst-54434
04/17/2023, 5:57 PMenough-analyst-54434
04/17/2023, 5:57 PMwonderful-boots-93625
04/17/2023, 6:34 PM***/*_test*.py
in the sources list.happy-kitchen-89482
04/17/2023, 6:49 PMhappy-kitchen-89482
04/17/2023, 6:50 PMhappy-kitchen-89482
04/17/2023, 6:54 PMoverrides
now make it easy to override metadata for a specific file in that high-level BUILD file. BUT - the problem is when you do want to introduce a lower level BUILD file for some reason, there will now be two providers of metadata for the same file, which today confuses Pants. There is an idea of accumulating metadata across all targets that own a file (with the innermost setting for a particular field overriding outer ones) but that is not implemented yet. Once it is, having a small handful of BUILD files will be much more practical.happy-kitchen-89482
04/17/2023, 6:54 PMpolite-art-32636
04/17/2023, 7:37 PMhappy-kitchen-89482
04/17/2023, 7:41 PMhappy-kitchen-89482
04/17/2023, 7:41 PMhappy-kitchen-89482
04/17/2023, 7:42 PMhappy-kitchen-89482
04/17/2023, 7:43 PMproud-dentist-22844
04/17/2023, 10:36 PMwide-midnight-78598
04/17/2023, 11:18 PMhappy-kitchen-89482
04/18/2023, 3:28 PMwide-midnight-78598
04/18/2023, 11:43 PMenough-analyst-54434
04/18/2023, 11:48 PMwide-midnight-78598
04/18/2023, 11:59 PMpolite-art-32636
04/22/2023, 4:17 PM