-
-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--changed
may not detect an inferred dependency on a deleted (or malformed) file
#14975
Comments
@thejcannon : So it turns out that |
I turned it on and never looked back! I think defaulting to warn makes sense. There's a discussion to have about where it should happen. E.g in it's own "lint"er or "check"er, but that's extra |
Given the OP, I would be concerned that if it were in |
…ult. (#16281) Rough consensus was reached on #15326 and #14975 that enabling `unowned_dependency_behavior="warning"` by default would: 1. be helpful for new users, to guide them through fixing their missing dependencies 2. be useful in the case of adding additional resolves (due to the work done in #15326 to enrich the warning for that case) 3. reduce the chances of CI errors in #14975 (when users go a step further to make the warning an error) `2.14.x` is a relatively quiet release so far, so it seems like there is room in the budget for a new warning like this. The rendered message for this warning is very self-explanatory due to @thejcannon's original work, and @Eric-Arellano's followup work in #15326, so I don't see any obvious documentation changes that need to be made. [ci skip-build-wheels] [ci skip-rust]
I have an edge case example of where Assuming I'd argue that the implicit dependency on |
Although we have yet to see it in production,(EDIT: See #17512) currently dependency inference may prevent--changed
from finding any dependents of a missing or malformed file.With explicitly specified dependencies in
BUILD
files, removing a file and not also updating the dependentBUILD
files will causeBUILD
files to fail to parse. But with dependency inference, unless[python-infer].unowned_dependency_behavior=error
is set, inference@rules
will silently not find the source of a symbol.To resolve this, we should probably attempt to bias toward defaulting to warning (and possibly erroring) for unrecognized imports, across all languages.
The text was updated successfully, but these errors were encountered: