forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge RepositoryValue into RepositoryDirectoryValue
RV is a simple wrapper around RDV. RV is returned by RepositoryLoaderFunction, whereas RDV is returned by RepositoryDelegatorFunction. As expected, RLF simply calls RDF and does nothing else. So we can just remove RV+RLF and replace any usages with RDV+RDF. Note that this didn't always use to be the case; the comment in RLF.java indicates that this split was done to prevent SkyFunctions restarts causing repos to be fetched multiple times. This was at one point possible (see [this revision](https://cs.opensource.google/bazel/bazel/+/master:src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryLoaderFunction.java;l=55;drc=63c60a0c0f7806e7909e1c4242263fc49fe585d5) for example). As a next step, we could maybe rename RepositoryDelegatorFunction to RepositoryLoaderFunction, and RepositoryDirectoryValue to RepositoryValue; the latter pair of names is arguably better. PiperOrigin-RevId: 361830387
- Loading branch information
1 parent
fcf9dd5
commit 01e0f43
Showing
22 changed files
with
63 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 0 additions & 63 deletions
63
src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryLoaderFunction.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.