Skip to content

Add support for compact repo mapping manifest to the runfiles library#1560

Open
cerisier wants to merge 4 commits intobazelbuild:mainfrom
cerisier:cerisier/compact-repo_mapping
Open

Add support for compact repo mapping manifest to the runfiles library#1560
cerisier wants to merge 4 commits intobazelbuild:mainfrom
cerisier:cerisier/compact-repo_mapping

Conversation

@cerisier
Copy link
Copy Markdown
Contributor

@cerisier cerisier commented Aug 23, 2025

Implements bazelbuild/bazel#26262

This implementation follows what others like rules_java have done. Note that the implementation is O(prefix). If performance is an issue, we could probably make that a better with a Trie to replicate NavigableMap.

This implementation follows what others like rules_java have done.
Note that the implementation is O(prefix). If performance is an issue, we could probably make that a better with a Trie to replicate NavigableMap.
@cerisier
Copy link
Copy Markdown
Contributor Author

cerisier commented Sep 9, 2025

Anyone for a review now that 8.4.0 is out ?

@brentleyjones
Copy link
Copy Markdown
Collaborator

FYI, this will be required (by default at least) for Bazel 9: bazelbuild/bazel@244867b

@cerisier
Copy link
Copy Markdown
Contributor Author

Rebased and simplified the lookup logic since prefixes cannot be prefixes of other prefixes so returning the first match is ok here.

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