-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
protos: Remove unused proto import #16834
Conversation
Signed-off-by: Ryan Northey <[email protected]>
86eb53d
to
8bf7979
Compare
I am wondering is there a tool to check unused proto import? |
not afaiaa but i would be very happy to be corrected see #15589 for related discussion |
Happy to see those clean :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phlax can you add to CI some auto-detection of these warnings and then we can prevent regression? I don't mind approving this, but ideally we automate ourselves out of our job here.
@htuch not trivially as explained before - the obvious way would be to fail on warning - but bazel rules_proto emits useless warnings about missing directories which massively complicates that here is our tracking ticket #15589 and here is me moaning on the very aged upstream ticket about lack of progress bazelbuild/bazel#7157 (comment) i guess there are some hacky workarounds - but its pretty annoying because i think the proper fix should be fairly trivial |
one thing i would also say is that i was cleaning up 2-3 of these per week - but fixing the docs seems to have reduced this down to 1 or 2 a month |
I was thinking something like |
Signed-off-by: Ryan Northey <[email protected]>
Signed-off-by: Ryan Northey [email protected]
Commit Message: protos: Remove unused proto import
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]