-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update to manifest API to make it impossible to create an invalid target dependency condition. #4168
Conversation
…get dependency condition. motivation: reduce use of preconditions, make editing manifest safer changes: * deprecate TargetDependencyCondition "when" initializor that uses a precondition * move TargetDependencyCondition code to a more approprate place * add tests * update change log
a515d4d
to
83bcb5c
Compare
@swift-ci please smoke test |
/// - Parameters: | ||
/// - platforms: The applicable platforms for this target dependency condition. | ||
@_disfavoredOverload | ||
@available(_PackageDescription, obsoleted: 5.7, message: "using .when with nil platforms is obsolete") |
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.
Will this warning also trigger if my manifest assigns the platform to a variable of type [Platform]?
? I'm not sure how interesting that case is, but I could see a manifest doing that if it somehow conditionalized whether there are conditions.
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.
yes it will emit the availability warning and the users will need to change the code appropriately as they transition to 5.7
@swift-ci please smoke test linux |
3 similar comments
@swift-ci please smoke test linux |
@swift-ci please smoke test linux |
@swift-ci please smoke test linux |
@swift-ci please smoke test Linux |
motivation: reduce use of preconditions, make editing manifest safer
changes: