Hi all, was wondering if it was possible to exclud...
# general
a
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
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