use of com.google.devtools.build.lib.analysis.WorkspaceStatusAction in project bazel by bazelbuild.
the class WorkspaceStatusFunction method compute.
@Override
public SkyValue compute(SkyKey skyKey, Environment env) throws InterruptedException {
Preconditions.checkState(WorkspaceStatusValue.SKY_KEY.equals(skyKey), WorkspaceStatusValue.SKY_KEY);
WorkspaceStatusAction action = PrecomputedValue.WORKSPACE_STATUS_KEY.get(env);
if (action == null) {
return null;
}
return new WorkspaceStatusValue(action.getStableStatus(), action.getVolatileStatus(), action);
}
Aggregations