-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add yum provider support #2642
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
Add yum provider support #2642
Conversation
@swift-ci smoke test |
94e05e9
to
80c3fa4
Compare
@swift-ci smoke test |
@aciidb0mb3r any idea why this is failing?
The case is clearly part of the PR: https://github.com/apple/swift-package-manager/pull/2642/files#diff-72f5fe00a512bdefecfdb4d0a0574387R23 |
Ah, you need to land the TSC changes in this repository first: https://github.com/apple/swift-tools-support-core |
/// | ||
/// - Parameters: | ||
/// - packages: The list of package names. | ||
public static func yum(_ packages: [String]) -> SystemPackageProvider { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be marked using package description availability: @available(_PackageDescription, introduced: 999)
Ah, good. Thanks! |
@aciidb0mb3r Created swiftlang/swift-tools-support-core#59 Should I remove the code from this PR? |
80c3fa4
to
e8de92b
Compare
Nah, it needs to be in both places right now :( |
@@ -426,9 +426,11 @@ public enum SystemPackageProvider { | |||
#if PACKAGE_DESCRIPTION_4 | |||
case brewItem([String]) | |||
case aptItem([String]) | |||
case yumItem([String]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't add this case for PackageDescription 4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -1412,6 +1412,7 @@ final class BuildPlanTests: XCTestCase { | |||
providers: [ | |||
.brew(["BTarget"]), | |||
.apt(["BTarget"]), | |||
.yum(["BTarget"]), | |||
] | |||
) | |||
]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, not sure what's up with the commented out assertion. Can you check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll open a separate PR for that, as it's unrelated to this change. If for some reason this has to be reverted, we would regress there again.
Some minor comments but LGTM! Thanks for working on this 😃 |
e8de92b
to
8c57a7e
Compare
@aciidb0mb3r thanks for the review. I removed the PD4 cases. |
@swift-ci test |
@swift-ci smoke test |
No description provided.