Skip to content

Commit e543674

Browse files
laszlocsomorCopybara-Service
authored and
Copybara-Service
committed
windows: fix --symlink_prefix=/ throwing exception
Fixes #4421 RELNOTES: none PiperOrigin-RevId: 181742216
1 parent d90a005 commit e543674

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/google/devtools/build/lib/buildtool/OutputDirectoryLinksUtils.java

+4
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ static void createOutputDirectoryLinks(
154154
*/
155155
public static PathFragment getPrettyPath(Path file, String workspaceName,
156156
Path workspaceDirectory, String symlinkPrefix, String productName) {
157+
if (NO_CREATE_SYMLINKS_PREFIX.equals(symlinkPrefix)) {
158+
return file.asFragment();
159+
}
160+
157161
for (String link : LINKS) {
158162
PathFragment result = relativize(file, workspaceDirectory, symlinkPrefix + link);
159163
if (result != null) {

0 commit comments

Comments
 (0)