<#17927 Disambiguate inferred deps by source root>...
# github-notifications
c
#17927 Disambiguate inferred deps by source root Issue created by benjyw A repo may sometimes have multiple providers of the same symbol, across different source roots. A common case is when multiple projects are "naively" merged into a single monorepo, so that each project is in its own source root. Multiple such projects may provide the same symbol, either as first-party source (via .py files with the same relative path from the source root) or as third-party (via multiple requirements.txt with overlapping project names). E.g.,
Copy code
src/project_1/mycompany/config.py
src/project_2/mycompany/config.py
Where src/project_1 and src/project_2 are source roots. In practice, we can resolve this ambiguity by (optionally) preferring the provider in the same source root as the consumer. This is very likely to be what the user intends. pantsbuild/pants