-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update diagnostics for duplicated product/target names #7572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update diagnostics for duplicated product/target names #7572
Conversation
rdar://127623219
@@ -13015,17 +13015,9 @@ final class WorkspaceTests: XCTestCase { | |||
do { | |||
workspace.sourceControlToRegistryDependencyTransformation = .disabled | |||
|
|||
XCTAssertThrowsError(try workspace.checkPackageGraph(roots: ["root"]) { _, diagnostics in | |||
testDiagnostics(diagnostics) { result in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was unreachable.
@@ -13135,31 +13127,16 @@ final class WorkspaceTests: XCTestCase { | |||
|
|||
do { | |||
workspace.sourceControlToRegistryDependencyTransformation = .disabled | |||
if ToolsVersion.current < .v5_8 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was obviously always false.
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@neonichu could you please cherry-pick this to 6.0 branch as well? |
Sure #7575 |
- Explanation: Improves diagnostic messages for duplicate product/target to include involved packages and other useful information. - Scope: Package manifests/graphs with duplicate product/target names. - Main Branch PRs: #7572 - Resolves: rdar://127623219 - Risk: Very Low - Reviewed By: @xedin - Testing: New tests were added to the suite and existing tests updated. (cherry picked from commit e5123e4)
rdar://127623219