Skip to content

Fix resolution of SwiftSyntax 600 #23

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
merged 2 commits into from
Jun 25, 2024

Conversation

kabiroberai
Copy link
Contributor

@kabiroberai kabiroberai commented Jun 23, 2024

When using swift-macro-testing in a package that depends on SwiftSyntax 600.0.0-prerelease (or 600.0.0-latest), SwiftPM appears to be unable to reconcile the "509.0.0"..<"601.0.0" range with the 600.0.0-prerelease requirement from the dependent package.

From my experience, it seems that SwiftPM doesn't like to resolve prerelease versions (x.y.z-a) when supplied with a broader range. Providing the prerelease as an explicit upper bound fixes this. Not 100% sure this is a reliable approach, but it seems to fix the issue from my experience. Looks like this is intentional and including -prerelease in the range specifier is a kosher fix.

Related:

Slack discussion

@mbrandonw mbrandonw merged commit 4787b0b into pointfreeco:main Jun 25, 2024
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.

2 participants