-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Fix cc_library protoc_lib defines main() #12887 #20016
base: main
Are you sure you want to change the base?
Conversation
visibility = ["//visibility:public"], | ||
deps = ["//src/google/protobuf/compiler:protoc_lib"], |
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.
You're gonna have to duplicate the deps here because we enable strict layering in our repo. We should probably create a new variable to avoid duplication
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.
How about use relative label here,have changed it to :protoc_lib
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.
That doesn't change anything. Strict layering requires you explicitly declare all your direct dependencies. So this fails to build because a bunch of headers are missing
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.
Got it, thank you for your explanation.
Fix issue #12887