Skip to content

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Sep 4, 2025

No description provided.

@fmeum fmeum force-pushed the 26450-redo-external branch 3 times, most recently from ab142f1 to 81a8e2f Compare September 5, 2025 12:31
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
This makes it possible to get rid of `RepositoryDirectoryDirtinessChecker` and all the infrastructure required to wire it up in the executor. The new `allowExternalRepositories` bit also replaces other such bits.

# Conflicts:
#	src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryFetchFunction.java
#	src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDirectoryValue.java

# Conflicts:
#	src/test/java/com/google/devtools/build/lib/bazel/repository/RepositoryDelegatorTest.java
# Conflicts:
#	src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryFetchFunction.java
@fmeum fmeum force-pushed the 26450-redo-external branch from 81a8e2f to 0275bc2 Compare September 5, 2025 12:35
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