<#17511 Dependees does not return files dependent ...
# github-notifications
q
#17511 Dependees does not return files dependent on removed modules Issue created by njgrisafi Describe the bug When removing a whole Python module Pants`dependees` does not return dependent files. This seems to be a behavior change between version 2.7 -> 2.8. I also tested on the latest version 2.14 and it seems to be a warning now:
Copy code
10: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:
Copy code
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/pants