gentle-gigabyte-52115
02/21/2023, 11:08 AMpants test ::
Gives an error:
12:03:57.81 [WARN] The target project1/app/a_test.py:test imports `app.app.test_open_file`, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['project1/app/app.py', 'project2/app/app.py'].
happy-kitchen-89482
02/21/2023, 12:49 PMgentle-gigabyte-52115
02/21/2023, 12:58 PMgentle-gigabyte-52115
02/21/2023, 1:08 PMambiguity_resolution = "by_source_root"
under [python-infer]
Thanks that works for me!happy-kitchen-89482
02/21/2023, 1:31 PM