Hi, I have kind of general question. I remember a ...
# general
m
Hi, I have kind of general question. I remember a few years earlier we had to explicitly mention the dependencies in BUILD files, which changed to pants automatically inferring them from the code/imports and we had kind of empty BUILD files with just
python_sources()
. Now with https://www.pantsbuild.org/docs/reference-python-infer#assets which is false by default, we expect dependencies to mentioned explicitly. Is there a reason why assets is false by default, rather than true?
h
I think it's mostly a (possibly misplaced) fear of false positives. Also, when that feature was introduced we likely decided to set it to False to avoid strange behavior changes on upgrades. But note that this setting is only for inferring dependencies on asset files. Code dependencies (from import statements) are inferred by default, since they are unlikely to be false positives.
1
m
Thank you Benjy for explanation.