Skip to content

[509] Add missing dependency to SwiftSyntaxMacroExpansion. #2295

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

Matejkob
Copy link
Contributor

@Matejkob Matejkob commented Oct 16, 2023

Cherry-pick #2285 to package-release/509.


The SwiftSyntaxMacroExpansion module imports SwiftOperators but does not depend on it explicitly in Package.swift. This is no big deal in Swift 5.x, but I believe in Swift 6 this will become an error.

Also, other packages that depend on this package seem to have stricter build systems, and so the lack of this dependency is actually causing CI failures. For example, by updating OpenAPIGenerator to use SwiftSyntax 509 there is a CI failure due to this problem:

error: Target SwiftSyntaxMacroExpansion imports another target (SwiftOperators) in the package without declaring it a dependency.

@Matejkob Matejkob requested a review from ahoppen as a code owner October 16, 2023 20:21
@ahoppen ahoppen changed the title [5.9] Add missing dependency to SwiftSyntaxMacroExpansion. [509] Add missing dependency to SwiftSyntaxMacroExpansion. Oct 16, 2023
@ahoppen ahoppen requested a review from bnbarham October 16, 2023 20:22
@ahoppen
Copy link
Member

ahoppen commented Oct 16, 2023

✅ Local testing for package-release/509 succeeded.

@ahoppen ahoppen merged commit ffa3cd6 into swiftlang:package-release/509 Oct 17, 2023
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