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

Write a repo mapping manifest in the runfiles directory #16321

Closed
wants to merge 1 commit into from

Commits on Oct 21, 2022

  1. Write a repo mapping manifest in the runfiles directory

    To ensure we can use repo mappings in the runfiles library, this change writes an extra file "my_binary_target.repo_mapping", which contains a bunch of (base_repo_canonical_name, apparent_repo_name, canonical_repo_name) triples. See https://github.com/bazelbuild/proposals/blob/main/designs/2022-07-21-locating-runfiles-with-bzlmod.md for more information.
    
    The extra file is written using a new action "RepoMappingManifestAction", and it's only executed if we know for sure that Bzlmod is enabled. This avoid generating a lot of extra actions that are essentially useless for monorepo setups such as Google's.
    
    Work towards #16124
    
    PiperOrigin-RevId: 475820334
    Change-Id: I885b4df093bd2c783c57d19f995f420b9b29b53c
    Wyverald authored and Copybara-Service committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    8f2f6ea View commit details
    Browse the repository at this point in the history