Skip to content

Conversation

@etcwilde
Copy link
Member

Reverts #1330

SwiftPM does not allow different packages to have the same internal target names.
This change causes a regression in CI while building the toolchain as it creates a conflict between target names in Swift-Docc and Swift-Driver.

[2025-11-10T11:28:21.125Z] error: multiple packages ('swift-docc', 'swift-driver') declare targets with a conflicting name: 'TestUtilities'; target names need to be unique across the package graph

https://ci.swift.org/view/all/job/oss-swift-package-freebsd-14/226/

@etcwilde
Copy link
Member Author

@swift-ci please test

@d-ronnqvist
Copy link
Contributor

Can we revert only one of these names if it's the only one that causes problems?

@gottesmm
Copy link

This is blocking linux PR testing: https://ci.swift.org/job/swift-PR-Linux/24774/console

@d-ronnqvist
Copy link
Contributor

How can we reintroduce this change without breaking other packages? These targets are internal-only (not products) and aren't usable outside of this repo.

Is there a consumer of both packages that need to specify module aliases on its dependencies?

If not, is it possible for a package to specify module aliases for its local internal libraries so that every package doesn't need to add unnecessary prefixes to ensure globally unique target names across the entire ecosystem?

@gottesmm gottesmm merged commit f2a841e into main Nov 10, 2025
2 checks passed
@gottesmm gottesmm deleted the revert-1330-rename-target-for-clarity branch November 10, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants