Is there a way to treat warnings as failures? For ...
# general
s
Is there a way to treat warnings as failures? For example I have warnings like:
Copy code
[WARN] Pants cannot infer owners for the following imports in the target <TARGET>
which lead to failures further on. As this is a warning though, it doesn’t stop the build until a problem occurs later. I would like to fail the build on issues like this so it doesn’t get hidden in the logs
1