https://pantsbuild.org/ logo
#general
Title
# general
b

bitter-ability-32190

05/16/2022, 5:48 PM
Can I `!path/to:tgt`a transitive dep? I'm seeing it when I use
./pants --dependencies --transitive some/other:tgt
1
c

curved-television-6568

05/16/2022, 5:50 PM
Try with double !
b

bitter-ability-32190

05/16/2022, 5:52 PM
You can use the prefix
!!
to transitively exclude a dependency, meaning that even if a target's dependencies include the bad dependency, the final result will not include the value.
2
I just assumed
!!
was to escape a file with
!
. Which makes no sense now lol
🙃 1
Ok now I'm thinking I want to inject this dependency ejection 🤔
Hmm the code in
graph.py
seemingly doesn't allow it bummer
c

curved-television-6568

05/16/2022, 8:00 PM
💉 ⏏️
b

bitter-ability-32190

05/16/2022, 8:00 PM
💯
3 Views