incalculable-yacht-22392
02/12/2025, 9:57 PMpants test --python-infer-ambiguity-resolution=by_source_root src/some/path
but this doesn't in pants.toml
[python-infer]
# resolve the requirements.txt closest to the source root
ambiguity_resolution = "by_source_root"
fast-nail-55400
02/12/2025, 10:01 PMpants help-advanced python-infer
fast-nail-55400
02/12/2025, 10:01 PMambiguity_resolution
config, you should see the current value displayed in the help output.fast-nail-55400
02/12/2025, 10:36 PMincalculable-yacht-22392
02/13/2025, 1:23 AM--python-infer-ambiguity-resolution=<AmbiguityResolution>
PANTS_PYTHON_INFER_AMBIGUITY_RESOLUTION
ambiguity_resolution
one of: [none, by_source_root]
default: none
current value: by_source_root (pants.toml)
fast-nail-55400
02/13/2025, 2:14 AMfast-nail-55400
02/13/2025, 2:14 AMincalculable-yacht-22392
02/13/2025, 2:24 AMincalculable-yacht-22392
02/13/2025, 2:25 AMfast-nail-55400
02/13/2025, 2:51 AMincalculable-yacht-22392
02/13/2025, 2:03 PM[WARN] The target beam/package/svc_x/entry_point.py imports `google.cloud.pubsub_v1`, but Pants cannot safely infer a dependency because more than one target owns this module, so it is ambiguous which to use: ['beam/package/svc_x2:reqs#google-cloud-pubsub', 'beam/package/svc_x3:reqs#google-cloud-pubsub', 'beam/package/svc_x4:reqs#google-cloud-pubsub', 'beam/package/svc_x5:reqs#google-cloud-pubsub', 'beam/package/svc_x6:reqs#google-cloud-pubsub', 'beam/package/svc_x7:reqs#google-cloud-pubsub', 'beam/package/svc_x8:reqs#google-cloud-pubsub', 'beam/package/svc_x9:reqs#google-cloud-pubsub', 'beam/package/svc_x10:reqs#google-cloud-pubsub', 'beam/svc_x11:reqs#google-cloud-pubsub', 'beam/svc_x12:reqs#google-cloud-pubsub', 'beam:reqs#google-cloud-pubsub'].
incalculable-yacht-22392
02/13/2025, 2:10 PMincalculable-yacht-22392
02/13/2025, 3:31 PMpython_sources(
dependencies=[
'!beam/package/wedge_loads:reqs', '!beam/package/file_upload_ingestor:reqs']
)
python_requirements(
name="reqs",
source="requirements_svc1_service.txt",
)
incalculable-yacht-22392
02/13/2025, 3:44 PMPlease explicitly include the dependency you want in the `dependencies` field of beam/svc_1/tests/package/end_2_end/tl_end_2_end_test.py:../../svc_1-tests, or ignore the ones you do not want by prefixing with `!` or `!!` so that one or no targets are left.
fast-nail-55400
02/13/2025, 4:10 PMfast-nail-55400
02/13/2025, 4:10 PMincalculable-yacht-22392
02/13/2025, 4:10 PMincalculable-yacht-22392
02/13/2025, 4:11 PMincalculable-yacht-22392
02/13/2025, 4:12 PMfast-nail-55400
02/13/2025, 4:12 PMfast-nail-55400
02/13/2025, 4:15 PMincalculable-yacht-22392
02/13/2025, 4:26 PMincalculable-yacht-22392
02/13/2025, 4:27 PM