Skip to content

Fix absl/algorithm:container target mapping and deduplicate multi-target deps. - #1301

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_994040843
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_994040843

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Fix absl/algorithm:container target mapping and deduplicate multi-target deps.

mapTargetName previously matched parts[1] == "container" for @com_google_absl//absl/algorithm:container, emitting absl::flat_hash_map, absl::flat_hash_set, and absl::inlined_vector instead of absl::algorithm_container. Returning multi-target mappings as a single pre-joined string with embedded newlines and quotes also bypassed sorting and deduplication in formatList, leaving duplicate absl::flat_hash_map entries in generated CMakeLists.txt files.

Map @com_google_absl//absl/algorithm:container to absl::algorithm_container, map @com_google_googletest//:gtest and :gtest_main directly to GTest::gmock and GTest::gmock_main (which link GTest::gtest transitively), and deduplicate sorted target entries in formatList with slices.Compact.

…get deps.

mapTargetName previously matched parts[1] == "container" for @com_google_absl//absl/algorithm:container, emitting absl::flat_hash_map, absl::flat_hash_set, and absl::inlined_vector instead of absl::algorithm_container. Returning multi-target mappings as a single pre-joined string with embedded newlines and quotes also bypassed sorting and deduplication in formatList, leaving duplicate absl::flat_hash_map entries in generated CMakeLists.txt files.

Map @com_google_absl//absl/algorithm:container to absl::algorithm_container, map @com_google_googletest//:gtest and :gtest_main directly to GTest::gmock and GTest::gmock_main (which link GTest::gtest transitively), and deduplicate sorted target entries in formatList with slices.Compact.

PiperOrigin-RevId: 994040843

This branch has not been deployed

No deployments
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.

1 participant