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

Be resilient with Bazel-built transitive dependencies duplicates #318

Merged
merged 2 commits into from
Sep 17, 2019

Conversation

irengrig
Copy link
Contributor

  • 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
@irengrig irengrig requested a review from jin September 17, 2019 17:55
@@ -5,6 +5,7 @@ tasks:
working_directory: examples
build_targets:
- "//cmake_android:app"
- "//cmake_synthetic:lib_with_duplicate_transitive_bazel_deps"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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)
Copy link
Collaborator

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."

@irengrig
Copy link
Contributor Author

Thank you so much for so quick review!
I corrected your comments.

@irengrig irengrig merged commit 16ddc00 into bazel-contrib:master Sep 17, 2019
alyssawilk pushed a commit to envoyproxy/envoy that referenced this pull request Sep 23, 2019
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>
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Sep 24, 2019
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>
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
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>
danzh2010 pushed a commit to danzh2010/envoy that referenced this pull request Oct 4, 2019
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants