cool-easter-32542
02/01/2024, 10:10 AMclick, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['test2/src:requirements', 'test1/src:requirements'].
Please explicitly include the dependency you want in the dependencies field of test1/src/test1.py:../../../sources, or ignore the ones you do not want by prefixing with ! or !! so that one or no targets are left.
Alternatively, you can remove the ambiguity by deleting/changing some of the targets so that only 1 target owns this module. Refer to https://www.pantsbuild.org/v2.19/docs/troubleshooting#import-errors-and-missing-dependencies.
"
Is there a way to disable it?
pantsbuild/pants