bitter-ability-32190
01/07/2022, 2:29 PMpython_source
target, I get a rather misleading error 🤔
pants.engine.target.InvalidFieldException: The 'source' field in target src/to/target:the_target must have 1 file, but it had 0 files.
bitter-ability-32190
01/07/2022, 2:30 PM"/home/joshuacannon/work/pants/src/python/pants/engine/target.py", line 1616
as the raiserwitty-crayon-22786
01/07/2022, 6:11 PMSingleSourceField
should probably override default_glob_match_error_behavior
to fail, which would cause it to fail before the validation with a better messagewitty-crayon-22786
01/07/2022, 6:11 PMbitter-ability-32190
01/07/2022, 6:14 PMwitty-crayon-22786
01/07/2022, 6:14 PMwitty-crayon-22786
01/07/2022, 6:58 PM