Skip to content

Commit a253072

Browse files
committed
fixup
1 parent 07abcf6 commit a253072

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Sources/Commands/show-dependencies.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ private final class DotDumper: DependenciesDumper {
8888
let url = package.manifest.packageLocation
8989
if nodesAlreadyPrinted.contains(url) { return }
9090
let pkgVersion = package.manifest.version?.description ?? "unspecified"
91-
// 👀 is this correct? or manifest name is better?
9291
stream <<< #""\#(url)" [label="\#(package.identity.description)\n\#(url)\n\#(pkgVersion)"]"# <<< "\n"
9392
nodesAlreadyPrinted.insert(url)
9493
}

Sources/PackageGraph/PackageGraph+Loading.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension PackageGraph {
3838
let rootManifestsMap = root.packages.mapValues { $0.manifest }
3939
let externalManifestsMap = externalManifests.map{ (identityResolver.resolveIdentity(for: $0.packageLocation), $0) }
4040
let manifestMap = rootManifestsMap.merging(externalManifestsMap, uniquingKeysWith: { lhs, rhs in
41-
return rhs // 👀 this was not possible before (the dictionary creation would crash), is preferring external correct?
41+
return lhs
4242
})
4343

4444
let successors: (GraphLoadingNode) -> [GraphLoadingNode] = { node in

Sources/SPMBuildCore/PluginInvocation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extension PackageGraph {
6161
var evalResults: [PluginInvocationResult] = []
6262
for pluginTarget in pluginTargets {
6363
// Give each invocation of a plugin a separate output directory.
64-
let pluginOutputDir = outputDir.appending(components: package.manifestName, target.name, pluginTarget.name)
64+
let pluginOutputDir = outputDir.appending(components: package.identity.description, target.name, pluginTarget.name)
6565
do {
6666
try fileSystem.createDirectory(pluginOutputDir, recursive: true)
6767
}

0 commit comments

Comments
 (0)