Skip to content

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Sep 5, 2025

All consumers transform the path into a root. This also makes it easier to experiment with alternative approaches to invalidation of external repo files, such as returning distinct Roots per fetch.

Work towards #26450

@fmeum fmeum marked this pull request as ready for review September 5, 2025 11:46
@fmeum fmeum removed the request for review from lberki September 5, 2025 11:46
@github-actions github-actions bot added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. awaiting-review PR is awaiting review from an assigned reviewer labels Sep 5, 2025
All consumers transform the path into a root anyway, which makes this a useful refactoring in its own right.

In follow-up work, this can be used to return a distinct `Root` per `RepositoryDirectoryValue`, even for the same underlying `Path`. This allows for clean invalidation of file state under a repository upon a refetch without injecting additional dependencies into `FileStateFunction`.
Work towards bazelbuild#26450
@fmeum fmeum force-pushed the 26450-advertise-root branch from 2128b24 to 04010d1 Compare September 5, 2025 12:34
@Wyverald Wyverald added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants