fierce-fall-70380
02/04/2025, 9:17 PMimport lines in a given python module should ever affect its ability to infer.fast-nail-55400
02/04/2025, 9:28 PMpython-dump-source-analysis debug goal installed? (Run pants help goals and see if it is listed.) if you do, that will dump the raw dependency inference metadata which may provide useful information to help debug.fast-nail-55400
02/04/2025, 9:29 PM...debug_goals backend for it, so I am wondering whether we actually made it visible to users ... )fierce-fall-70380
02/04/2025, 9:31 PMfierce-fall-70380
02/04/2025, 9:33 PM--keep-sandboxes=always not apply to the dependents goal? It's never worked for me.fast-nail-55400
02/04/2025, 9:34 PMdependents goal does not invoke a process so there is no sandbox ever created.fast-nail-55400
02/04/2025, 9:34 PMfast-nail-55400
02/04/2025, 9:36 PMpants python-dump-source-analysis --analysis-flavor=raw_dependency_inference PYTHON_SOURCE_TARGET to get the most data.fast-nail-55400
02/04/2025, 9:37 PMfierce-fall-70380
02/05/2025, 1:40 AMso I am wondering whether we actually made it visible to usersYep, just need
pants.backend.experimental.python.
https://www.pantsbuild.org/stable/reference/goals/python-dump-source-analysisfierce-fall-70380
02/05/2025, 2:06 AM"email_first": {"lineno": 50, "weak": false}
...
"email_first": {"status": "ImportOwnerStatus.unowned", "address": []},
Interestingly there's no entries for the other two imports (login and mfa) on the import line.happy-kitchen-89482
02/05/2025, 2:08 AMemail_first when you rearrange the import order so that it works?fierce-fall-70380
02/05/2025, 2:11 AM"web.email_first": {"lineno": 10, "weak": false},
...
"web.email_first": {"status": "ImportOwnerStatus.unambiguous", "address": ["fooserv/web/email_first.py"]}
Literally all I did was move the from web import email_first, login, mfa statement from line 50 to line 10 ...fierce-fall-70380
02/05/2025, 2:12 AMfierce-fall-70380
02/05/2025, 2:21 AMfierce-fall-70380
02/05/2025, 2:21 AMfierce-fall-70380
02/05/2025, 2:21 AMfierce-fall-70380
02/05/2025, 2:21 AMfierce-fall-70380
02/05/2025, 2:22 AMfrom foo.bar import (
from foo.baz import (
...
)
from web import email_first, login, mfafierce-fall-70380
02/05/2025, 2:23 AMhappy-kitchen-89482
02/05/2025, 3:37 AMhappy-kitchen-89482
02/05/2025, 3:37 AMfierce-fall-70380
02/05/2025, 6:22 PM