melodic-wolf-3186004/14/2022, 9:53 AM
Is it advisable to have a
file for each subdir as well? Given that we never intend to package/test the different subdirs separately?
I feel that having a
file at each subdir is unnecessary given we are happy with the defaults, and can be added later if we ever do intend to package/test/etc. those subdirs separately.
refined-addition-5364404/14/2022, 9:59 AM
narrow-vegetable-3748904/14/2022, 10:00 AM
curved-television-656804/14/2022, 10:21 AM
melodic-wolf-3186004/14/2022, 10:23 AM
happy-kitchen-8948204/14/2022, 12:57 PM
to override metadata on specific files. It's really up to you. Any choice you make should have no impact on performance, invalidation, caching and so on, since those happen at the file level anyway. TBH the recommendation of having one BUILD file per folder is a little outdated and reflects our personal preferences more than any deep-seated wisdom.
hundreds-father-40404/14/2022, 1:52 PM
TBH the recommendation of having one BUILD file per folder is a little outdated and reflects our personal preferences more than any deep-seated wisdom.Disagree. A lot of thought went into it in the past five months when designing Go https://github.com/pantsbuild/pants/issues/13488
enough-analyst-5443404/14/2022, 6:50 PM