Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tongke6
Copy link

@tongke6 tongke6 commented Jan 16, 2025

Fix issue #12887

@mkruskal-google mkruskal-google added 🅰️ safe for tests Mark a commit as safe to run presubmits over c++ bazel and removed 🅰️ safe for tests Mark a commit as safe to run presubmits over labels Jan 23, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 23, 2025
visibility = ["//visibility:public"],
deps = ["//src/google/protobuf/compiler:protoc_lib"],
Copy link
Member

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

Copy link
Author

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

Copy link
Member

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

Copy link
Author

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.

@mkruskal-google mkruskal-google added wait for user action 🅰️ safe for tests Mark a commit as safe to run presubmits over labels Jan 23, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 23, 2025
@mkruskal-google mkruskal-google added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 25, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants