-
Notifications
You must be signed in to change notification settings - Fork 583
[email protected] #6221
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
[email protected] #6221
Conversation
|
Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (dylib) have been updated in this PR. |
|
@bazel-io skip_check unstable_url |
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.
Code Review
The pull request adds a new module dylib with version 2.2.1 to the Bazel Central Registry. It includes the necessary files such as MODULE.bazel, source.json, presubmit.yml, and metadata.json. Patches are provided to add a BUILD.bazel file and modify the MODULE.bazel file. The review focuses on ensuring the PR adheres to the BCR policies, particularly the add-only requirement and the presence of required files.
| + deps = [ | ||
| + ":dylib", | ||
| + "@googletest//:gtest", | ||
| + "@googletest//:gtest_main", |
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.
Do we want cc_test here? googletest is never available.
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.
Add googletest as dev dependency. But googletest is not available when run test CI, Why? If I want to run test_binary in CI env, have I to make it as dependency not dev_dependency?
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.
If you want, you can run the module as a root module via https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/README.md#test-module (setting module_path to .) Then dev_dependency will be available.
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.
Also you may want to add --process_headers_in_dependencies as a build flag otherwise the presubmit isn't testing anything since it's a header only cc_library.
See examples from BCR:
bazel-central-registry/modules/xtl/0.8.0/presubmit.yml
Lines 15 to 16 in ce10dbf
| build_flags: | |
| - '--process_headers_in_dependencies' |
| + | ||
| +# Example usage and tests | ||
| +cc_binary( | ||
| + name = "dynamic_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.
Why doesn't the example binary depend on dylib?
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.
dynamic_lib is in data field in cc_test, which as runtime data, not as dep. dynamic_lib itself is a simple test function, only dep c++ std, Only cc_test depend on dylib. cc_test will use dylib to load dynamic_lib.so at runtime
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.
Looks great, thank you!
No description provided.