Skip to content
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

[SR-467] Package Manager Unable to Build Dependency with Prerelease Identifiers #5434

Closed
swift-ci opened this issue Jan 5, 2016 · 2 comments
Assignees
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jan 5, 2016

Previous ID SR-467
Radar None
Original Reporter jbl (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee @mxcl
Priority Medium

md5: 801ee557ccaa4b312197e300c0ed64a0

Issue Description:

When a dependency has a prerelease identifier, for instance version 1.2.3-beta5, swiftpm is unable to build it. I've been able to trace it to the initializer in dep/Package.swift, which uses the hyphen to split the folder name and then assumes the last component in the version. For example, with version 1.2.3-beta5 of the package deck-of-playing-cards, the package would get checked out into the folder deck-of-playing-cards-1.2.3-beta5. That initializer then interprets the version as beta5 and refuses to build the package because the version is incorrectly formatted.

@mxcl
Copy link
Contributor

mxcl commented Jan 6, 2016

Ah yes. This wasn't a problem before since we didn't support the final component of semver.

@mxcl
Copy link
Contributor

mxcl commented Jan 12, 2016

Please verify the fix: 64f1b2f

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants