aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java
diff options
context:
space:
mode:
authorGravatar Janak Ramakrishnan <janakr@google.com>2015-09-23 17:30:04 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-09-24 14:18:46 +0000
commitdf0531fad8fc0288c21f5672aa59907362ae0ff5 (patch)
treeb836a359a54977b891397c1a85293d1d7d854fe4 /src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java
parent784ffc06ea463912eca747a3c3a796d649232650 (diff)
Allow Skylark import lookup values to be computed inline in order to avoid reifying them in the Skyframe graph.
-- MOS_MIGRATED_REVID=103758591
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java
index 0ac9fd4402..390f958658 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkylarkImportLookupValue.java
@@ -71,6 +71,12 @@ public class SkylarkImportLookupValue implements SkyValue {
return key(pkgIdentifier.getRepository(), pkgIdentifier.getPackageFragment());
}
+ /**
+ * Returns a SkyKey to get a SkylarkImportLookupValue. Note that SkylarkImportLookupValue
+ * computations may be inlined to avoid having them in the graph. Callers should confirm whether
+ * inlining is desired and either do the computation directly themselves (if inlined) or request
+ * this key's value from the environment (if not).
+ */
static SkyKey key(RepositoryName repo, PathFragment fromFile, PathFragment fileToImport)
throws ASTLookupInputException {
PathFragment computedPath;