quaint-telephone-89068
11/09/2022, 5:55 PM10:28:00.15 [WARN] Pants cannot infer owners for the following imports in the target app/module_1/example.py:
* app.module_2.example.test (line: 1)
For example,, given this module:
app/
module_1/
__init__.py
example.py (imports module_2.example)
BUILD
module_2/
__init__.py
example.py
BUILD
When removing app/module_2/, add changes in git and then running ./pants dependees --changed-since=HEAD does not return app/module_1/example.py in dependee results.
Pants version
2.7 (last known working version)
2.8 (first known version with issue)
2.10 (current version)
OS
Both MacOS and Linux
Additional info
Please see example repo with predefined version branches:
• https://github.com/njgrisafi/pants-example/tree/27 (2.7)
• https://github.com/njgrisafi/pants-example/tree/28 (2.8)
Checkout one of the follow version branches above and perform the following test:
1. rm -rf app/module_2/
2. git add --all
3. ./pants dependees --changed-since=HEAD
Confirm the dependees output between versions. 2.7 should return module_1 and 2.8 will not.
pantsbuild/pantsuser
11/09/2022, 6:12 PM