From 2649c7c4adef0ebf9bca8fe46aa97304b22de522 Mon Sep 17 00:00:00 2001 From: Chenchu Kolli Date: Mon, 9 May 2022 19:20:55 -0500 Subject: [PATCH] Fix --use_top_level_targets_for_symlinks with aliases (#15446) Fixes https://github.com/bazelbuild/bazel/issues/14602 Closes #15316. PiperOrigin-RevId: 444970714 Co-authored-by: Keith Smiley --- .../com/google/devtools/build/lib/buildtool/ExecutionTool.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java b/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java index c9a4005ff83a63..a1a8755850c271 100644 --- a/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java +++ b/src/main/java/com/google/devtools/build/lib/buildtool/ExecutionTool.java @@ -680,6 +680,7 @@ private ImmutableList createConvenienceSymlinks( Set targetConfigurations = buildRequestOptions.useTopLevelTargetsForSymlinks() ? analysisResult.getTargetsToBuild().stream() + .map(ConfiguredTarget::getActual) .map(ConfiguredTarget::getConfigurationKey) .filter(Objects::nonNull) .distinct()