You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"module aliasing can only be used for Swift based targets; non-Swift sources found in target '\(target)' for product '\(product)' from package '\(package)'"
return"target '\(targetName)' of type '\(targetType)' cannot depend on '\(dependencyName)' of type '\(dependencyType)'\(trailingMsg); this dependency is unsupported"
244
+
return"plugin '\(targetName)' cannot depend on '\(dependencyName)' of type '\(dependencyType)'\(trailingMsg); this dependency is unsupported"
@@ -667,7 +667,7 @@ class PluginInvocationTests: XCTestCase {
667
667
XCTAssertThrowsError(try workspace.loadPackageGraph(rootInput: rootInput, observabilityScope: observability.topScope)){ error in
668
668
vardiagnosed=false
669
669
iflet realError = error as?PackageGraphError,
670
-
realError.description =="target 'MyPlugin' of type 'plugin' cannot depend on 'FooLib' of type 'library' from package 'foopackage'; this dependency is unsupported"{
670
+
realError.description =="plugin 'MyPlugin' cannot depend on 'FooLib' of type 'library' from package 'foopackage'; this dependency is unsupported"{
671
671
diagnosed =true
672
672
}
673
673
XCTAssertTrue(diagnosed)
@@ -685,9 +685,6 @@ class PluginInvocationTests: XCTestCase {
685
685
import PackageDescription
686
686
let package = Package(
687
687
name: "MyPackage",
688
-
dependencies: [
689
-
.package(path: "../FooPackage"),
690
-
],
691
688
targets: [
692
689
.target(
693
690
name: "MyLibrary",
@@ -697,8 +694,7 @@ class PluginInvocationTests: XCTestCase {
697
694
name: "MyPlugin",
698
695
capability: .buildTool(),
699
696
dependencies: [
700
-
"MyLibrary",
701
-
.product(name: "FooLib", package: "FooPackage"),
697
+
"MyLibrary"
702
698
]
703
699
),
704
700
]
@@ -747,7 +743,7 @@ class PluginInvocationTests: XCTestCase {
747
743
XCTAssertThrowsError(try workspace.loadPackageGraph(rootInput: rootInput, observabilityScope: observability.topScope)){ error in
748
744
vardiagnosed=false
749
745
iflet realError = error as?PackageGraphError,
750
-
realError.description =="target 'MyPlugin' of type 'plugin' cannot depend on 'MyLibrary' of type 'library'; this dependency is unsupported"{
746
+
realError.description =="plugin 'MyPlugin' cannot depend on 'MyLibrary' of type 'library'; this dependency is unsupported"{
0 commit comments