Is there any reason that running `./pants dependee...
# general
c
Is there any reason that running
./pants dependees --closed path/to/file.py
would yield nothing, but running
./pants dependees --closed --transitive path/to/file.py
on the same file would yield something? I’m trying to figure out why this is happening right now
h
Is the "something" the input file?
c
yes exactly!
h
So I guess
--closed
only works with
--transitive
which makes sense and should probably be documented and enforced
c
ahhh i see! im not at my computer right now but i will try it without that when i get back
Hmm, just tried it without the
--closed
argument, and still seeing the same thing (nothing)
h
A specific example would be helpful
c
Sure. In one file, I have an import like so:
Copy code
from front_porch.modules.lending_leads.graphql.lending_leads_module_config import lending_lead_module_config
When I run the following command, nothing is output.
Copy code
./pants dependees front_porch/modules/lending_leads/graphql/lending_leads_module_config.py
But when I run the following command, I see a ton of stuff output, including the file that imports
front_porch/modules/lending_leads/graphql/lending_leads_module_config.py
Copy code
./pants dependees --transitive front_porch/modules/lending_leads/graphql/lending_leads_module_config.py
h
Sounds like a bug
The next step will be a simple github repo that reproduces this
And to file the bug