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

ambitious-xylophone-5772

02/22/2023, 6:20 PM
Hi all, was wondering if it was possible to exclude a certain dependency from all BUILD files instead of having to go and do this manually for each file? Is there a more generalizable approach?
c

curved-television-6568

02/22/2023, 6:28 PM
depending on circumstances and version of Pants there are some options. If you rely entirely on dep inference you can provide a default value for the
dependencies
field to exclude it for all/select targets. If you are on 2.16.0.dev there are dependency rules that can warn/err in case there is an unwanted dependency (doesn’t remove it only ensures it’s not inadvertently introduced)
👀 1
3 Views