Skip to content

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