Split resolved hashes computation
...into a computation of the Skylark value contained in a resolved
file, and the computation of the expected hashes from this value.
In this way, we can reuse the code for computing the resolved value
for the (experimental) feature of using a resolved file instead of
a workspace file.
PiperOrigin-RevId: 209150452
Change-Id: Ib1a77128100d821c4cc3e0a0ba57f65d44e07e97
PiperOrigin-RevId: 210085624
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyFunctions.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyFunctions.java
index 9673a02..f075c3d 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyFunctions.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyFunctions.java
@@ -138,6 +138,8 @@
SkyFunctionName.createHermetic("TOOLCHAIN_RESOLUTION");
public static final SkyFunctionName REPOSITORY_MAPPING =
SkyFunctionName.createHermetic("REPOSITORY_MAPPING");
+ public static final SkyFunctionName RESOLVED_FILE =
+ SkyFunctionName.createHermetic("RESOLVED_FILE");
public static final SkyFunctionName RESOLVED_HASH_VALUES =
SkyFunctionName.createHermetic("RESOLVED_HASH_VALUES");