Skip to content

SwiftSyntax version in new macro template has trailing period in dependency version, causing error reading manifest #7018

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

stmontgomery
Copy link
Contributor

This fixes a regression I believe was introduced in #6774 where the new macro package template has its dependency on swift-syntax expressed as from: "509.0.0.", including an unncessary trailing period character. This causes an error reading the manifest.

I have not tested this, but I experienced the bug and from source inspection believe this is likely the issue.

Resolves rdar://117132800

…ndency version, causing error reading manifest

This fixes a regression I believe was introduced in swiftlang#6774 where the new macro package template has its dependency on swift-syntax expressed as `from: "509.0.0."`, including an unncessary trailing period character. This causes an error reading the manifest.

I have not tested this, but I experienced the bug and from source inspection believe this is likely the issue.

Resolves rdar://117132800
Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a test for this in WorkspaceTests/InitTests.swift?

@stmontgomery
Copy link
Contributor Author

Would you mind adding a test for this in WorkspaceTests/InitTests.swift?

It's not precisely what you asked for, but I just added a few very targeted unit tests as a start.

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MaxDesiatov
Copy link
Contributor

@swift-ci test

@neonichu neonichu merged commit 55e79b1 into swiftlang:main Oct 18, 2023
@stmontgomery stmontgomery deleted the swift-syntax-macro-template-version branch October 19, 2023 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants