Beispiel #1
0
 // TODO(bazel-team): Allow analysis to return null so the value builder can exit and wait for a
 // restart deps are not present.
 private boolean getWorkspaceStatusValues(Environment env, BuildConfiguration config) {
   env.getValue(WorkspaceStatusValue.SKY_KEY);
   Map<BuildInfoKey, BuildInfoFactory> buildInfoFactories =
       PrecomputedValue.BUILD_INFO_FACTORIES.get(env);
   if (buildInfoFactories == null) {
     return false;
   }
   // These factories may each create their own build info artifacts, all depending on the basic
   // build-info.txt and build-changelist.txt.
   List<SkyKey> depKeys = Lists.newArrayList();
   for (BuildInfoKey key : buildInfoFactories.keySet()) {
     if (buildInfoFactories.get(key).isEnabled(config)) {
       depKeys.add(BuildInfoCollectionValue.key(new BuildInfoKeyAndConfig(key, config)));
     }
   }
   env.getValues(depKeys);
   return !env.valuesMissing();
 }