(workspaceInfo: BazelWorkspaceInfo, label: BazelLabel)
| 116 | } |
| 117 | |
| 118 | function bazelLabelToAbsolutePath(workspaceInfo: BazelWorkspaceInfo, label: BazelLabel): string { |
| 119 | const targetPath = label.target.slice(2); |
| 120 | if (isExternalLabel(workspaceInfo, label)) { |
| 121 | return path.join(getSymlinkedBazelExecutionRoot(workspaceInfo), 'external', label.repo!, targetPath); |
| 122 | } else { |
| 123 | return path.join(workspaceInfo.workspaceRoot, targetPath); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | async function buildProjectSyncs(bazel: BazelClient, workspaceRoot: string, projectSyncTargets: readonly string[]) { |
| 128 | await bazel.buildTargets(projectSyncTargets); |
no test coverage detected