We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc8b6a0 commit a8e3b5bCopy full SHA for a8e3b5b
Sources/SourceKitBazelBSP/RequestHandlers/PrepareHandler.swift
@@ -102,7 +102,9 @@ final class PrepareHandler {
102
let labelsToBuild: [String]
103
let extraArgs: [String]
104
if initializedConfig.baseConfig.compileTopLevel {
105
- labelsToBuild = platformInfo.map { $0.topLevelParentLabel }
+ // We might get repeat labels in this case, so we need to dedupe them.
106
+ let topLevelLabelsToBuild = Set(platformInfo.map { $0.topLevelParentLabel })
107
+ labelsToBuild = topLevelLabelsToBuild.sorted()
108
extraArgs = [] // Not applicable in this case
109
} else {
110
guard platformInfo.count == 1 else {
0 commit comments