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-5192] swiftpm 4 incorrectly resolves prerelease major version as compatible with the current major version #4996

Closed
sharplet opened this issue Jun 12, 2017 · 2 comments
Labels

Comments

@sharplet
Copy link

Previous ID SR-5192
Radar None
Original Reporter @sharplet
Type Bug
Status Resolved
Resolution Duplicate
Environment

% swift --version
Apple Swift version 4.0 (swiftlang-900.0.43 clang-900.0.22.8)
Target: x86_64-apple-macosx10.9

% xcodebuild -version
Xcode 9.0
Build version 9M136h

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: defa6f030912516014d658ed48822ec9

duplicates:

  • SR-1039 Fetch a dependency with a specified Pre-release version

Issue Description:

When using from: "major.minor.patch" to specify a version constraint, the package manager incorrectly resolves prerelease tags from the next major version as compatible with the current major version.

Sample project: https://github.com/sharplet/swiftpm-prerelease-bug

@sharplet
Copy link
Author

To avoid surprises, I feel like swiftpm shouldn't consider prerelease versions unless you explicitly opt into them on a dependency-by-dependency basis in the manifest.

@ankitspd
Copy link
Member

This is fixed in master.

@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