Skip to content

[6.0] NFC: Rename ResolvedTarget to ResolvedModule #7571

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

Merged

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 16, 2024

  • Explanation:

    With host/target triples separation in the SwiftPM codebase, it gets very confusing whether at a given moment "target" refers to a module, a triple, or a low level build system target.

    Renamed ResolvedTarget to ResolvedModule. Added a deprecated typealias ResolvedTarget = ResolvedModule to allow graceful migration for users of this type.

    Confusion between target triples and package targets is reduced.

    This has no impact on how these concepts are named in user-visible APIs like PackageDescription and PackagePlugin, target there can stay as "target" for as long as needed.

    Remaining internal uses of "target" outside of "target triple" context, like *TargetBuildDescription will be renamed in future PRs.

  • Scope: NFC change

  • Main Branch PRs: Rename ResolvedTarget to ResolvedModule #7459

  • Risk: Very Low

  • Reviewed By: @bnbarham

  • Testing: No new tests are necessary

(cherry picked from commit 27996b8)

With host/target triples separation in the SwiftPM codebase, it gets
very confusing whether at a given moment "target" refers to a module, a
triple, or a low level build system target.

Renamed `ResolvedTarget` to `ResolvedModule`. Added a deprecated
`typealias ResolvedTarget = ResolvedModule` to allow graceful migration
for users of this type.

Confusion between target triples and package targets is reduced.

This has no impact on how these concepts are named in user-visible APIs
like `PackageDescription` and `PackagePlugin`, target there can stay as
"target" for as long as needed.

Remaining internal uses of "target" outside of "target triple" context,
like `*TargetBuildDescription` will be renamed in future PRs.

(cherry picked from commit 27996b8)
@xedin xedin added the swift 6.0 Related to Swift 6.0 release branch label May 16, 2024
@xedin
Copy link
Contributor Author

xedin commented May 16, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 17, 2024

@swift-ci please clean test Linux platform

@xedin xedin merged commit 2d35c65 into swiftlang:release/6.0 May 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift 6.0 Related to Swift 6.0 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants