Search in sources :

Example 1 with WorkspaceStatusAction

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);
}
Also used : WorkspaceStatusAction(com.google.devtools.build.lib.analysis.WorkspaceStatusAction)

Aggregations

WorkspaceStatusAction (com.google.devtools.build.lib.analysis.WorkspaceStatusAction)1