cool-easter-32542
05/22/2024, 12:45 PMThere is one downside with the current implementation for this, and that is that Pants will now treat the "default" glob for thefield as "user provided", and as such err out for any globs that don't match any files.sources
This is a pain if used inOriginally posted by @kaos in #17614 (comment) * * * The context here is, that source globs provided as field values will err if they match no files, where as source globs from the field default value does not. However, the values provided byto adjust the default sources glob for some target (say I want to have all__defaults__files owned byfactories.pyrather thanpython_test_utilsby default, but that file is not going to exist for all targets but unmatched_build_file_globs is a global option only..)python_sources
__defaults__ is treated the same as if they were provided directly on the target as a regular value.
pantsbuild/pantscool-easter-32542
05/28/2024, 8:56 AM