-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Collections] Support 'v' prefix in version #3495
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
Conversation
@swift-ci please smoke test |
@swift-ci please smoke test |
Hmm test failure doesn't seem to be related to this PR but got the same failure twice already:
@swift-ci please smoke test Linux |
CI failure reproducible with Updating test: #3496 |
@swift-ci please smoke test self hosted Linux |
@swift-ci please smoke test self hosted |
Motivation: Package versions with 'v' prefix (e.g., `v1.0.0`) in a collection are dropped because they are not semver, but SwiftPM actually supports checking out git tags that have 'v' prefix. Modifications: - Move `TSCUtility.Verson.init(tag:)` to `Basics` for sharing - Use `Version(tag:)`, which strips away any 'v' prefix, instead of `Version(string:)`
@swift-ci please smoke test |
Motivation: Package versions with 'v' prefix (e.g., `v1.0.0`) in a collection are dropped because they are not semver, but SwiftPM actually supports checking out git tags that have 'v' prefix. Modifications: - Move `TSCUtility.Verson.init(tag:)` to `Basics` for sharing - Use `Version(tag:)`, which strips away any 'v' prefix, instead of `Version(string:)`
Motivation:
Package versions with 'v' prefix (e.g.,
v1.0.0
) in a collection are dropped because they are not semver, but SwiftPM actually supports checking out git tags that have 'v' prefix.Modifications:
TSCUtility.Verson.init(tag:)
toBasics
for sharingVersion(tag:)
, which strips away any 'v' prefix, instead ofVersion(string:)