Skip to content

Be resilient with Bazel-built transitive dependencies duplicates#318

Merged
irengrig merged 2 commits intobazel-contrib:masterfrom
irengrig:add-duplicates-test
Sep 17, 2019
Merged

Be resilient with Bazel-built transitive dependencies duplicates#318
irengrig merged 2 commits intobazel-contrib:masterfrom
irengrig:add-duplicates-test

Conversation

@irengrig
Copy link
Copy Markdown
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
working_directory: examples
build_targets:
- "//cmake_android:app"
- "//cmake_synthetic:lib_with_duplicate_transitive_bazel_deps"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

return lines

def _symlink_contents_to_dir(dir_name, files_list):
files_list = collections.uniq(files_list)
Copy link
Copy Markdown
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
Copy Markdown
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