Skip to content

Conversation

@hugooole
Copy link
Contributor

No description provided.

@bazel-io
Copy link
Member

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (dylib) have been updated in this PR.
Please review the changes. You can view a diff against the previous version in the "Generate module diff" check.

@hugooole
Copy link
Contributor Author

@bazel-io skip_check unstable_url

@bazel-io bazel-io added the skip-url-stability-check Skip the URL stability check for the PR label Oct 16, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@meteorcloudy meteorcloudy added the presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval label Oct 17, 2025
@hugooole hugooole requested a review from meteorcloudy October 17, 2025 15:41
+ deps = [
+ ":dylib",
+ "@googletest//:gtest",
+ "@googletest//:gtest_main",
Copy link
Member

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.

Copy link
Contributor Author

@hugooole hugooole Oct 20, 2025

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?

Copy link
Member

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.

Copy link
Member

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:

build_flags:
- '--process_headers_in_dependencies'

+
+# Example usage and tests
+cc_binary(
+ name = "dynamic_lib",
Copy link
Member

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?

Copy link
Contributor Author

@hugooole hugooole Oct 20, 2025

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

Copy link
Member

@meteorcloudy meteorcloudy left a 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!

@meteorcloudy meteorcloudy merged commit ee5b7b0 into bazelbuild:main Oct 21, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval skip-url-stability-check Skip the URL stability check for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants