https://pantsbuild.org/ logo
#development
Title
# development
f

fast-nail-55400

07/29/2021, 3:23 PM
is there any documentation on how Pants treats dependency inference (
InferDependenciesRequest
) and dependency injection (
InjectDependenciesRequest
)? especially around which one is applied first?
h

hundreds-father-404

07/29/2021, 4:19 PM
Yeah only difference is that "inference" looks at source files, whereas injection is based on other things
c

curved-television-6568

07/29/2021, 5:55 PM
Why the distinction?
h

hundreds-father-404

07/29/2021, 5:58 PM
The
Request
types are different.
InjectDependenciesRequest
has
Dependencies
.
InferDependenciesRequest
has
sources_field
👍 1