-
Notifications
You must be signed in to change notification settings - Fork 249
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
Be resilient with Bazel-built transitive dependencies duplicates #318
Conversation
irengrig
commented
Sep 17, 2019
- it is possible that some duplicate libraries, built with Bazel, will be passed as inputs to cmake_external or configure_make. rules_foreign_cc should filter duplicates out rather then fail.
- add a test (which just builds the target) //cmake_synthetic:lib_with_duplicate_transitive_bazel_deps
- it is possible that some duplicate libraries, built with Bazel, will be passed as inputs to cmake_external or configure_make. rules_foreign_cc should filter duplicates out rather then fail. - add a test (which just builds the target) //cmake_synthetic:lib_with_duplicate_transitive_bazel_deps
.bazelci/config.yaml
Outdated
@@ -5,6 +5,7 @@ tasks: | |||
working_directory: examples | |||
build_targets: | |||
- "//cmake_android:app" | |||
- "//cmake_synthetic:lib_with_duplicate_transitive_bazel_deps" |
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.
Use https://github.com/bazelbuild/bazel-skylib/blob/master/rules/build_test.bzl and make it a test target?
@@ -443,6 +443,7 @@ def _copy_deps_and_tools(files): | |||
return lines | |||
|
|||
def _symlink_contents_to_dir(dir_name, files_list): | |||
files_list = collections.uniq(files_list) |
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 a comment here?
"It is possible that some duplicate libraries will be passed as inputs to cmake_external or configure_make. Filter duplicates out here."
Thank you so much for so quick review! |
This updates rules_foreign_cc to include bazel-contrib/rules_foreign_cc#318 The patch may fix some OSS-Fuzz build failures related to transitive dependencies in curl coming from #8154 Risk level: Low Signed-off-by: Asra Ali <asraa@google.com>
This updates rules_foreign_cc to include bazel-contrib/rules_foreign_cc#318 The patch may fix some OSS-Fuzz build failures related to transitive dependencies in curl coming from envoyproxy#8154 Risk level: Low Signed-off-by: Asra Ali <asraa@google.com>
This updates rules_foreign_cc to include bazel-contrib/rules_foreign_cc#318 The patch may fix some OSS-Fuzz build failures related to transitive dependencies in curl coming from envoyproxy#8154 Risk level: Low Signed-off-by: Asra Ali <asraa@google.com>
This updates rules_foreign_cc to include bazel-contrib/rules_foreign_cc#318 The patch may fix some OSS-Fuzz build failures related to transitive dependencies in curl coming from envoyproxy#8154 Risk level: Low Signed-off-by: Asra Ali <asraa@google.com>