Skip to content

Add VisionOS platform support to PIF.PlatformFilter #7448

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

Merged

Conversation

Ryu0118
Copy link
Contributor

@Ryu0118 Ryu0118 commented Apr 10, 2024

Motivation:

In the process of generating PIF, I identified a missing case for VisionOS in the implementation of the [PackageConditionProtocol].toPlatformFilters(), which led to assertionFailure when Package's platforms included VisionOS.

Modifications:

  • Added a new case .visionOS in the switch statement within the toPlatformFilters() extension for [PackageCondition].
  • Added a new static property visionOSFilters within PIF.PlatformFilter to define filters specific to VisionOS.

Result:

With these changes, PIFBuilder can now generate PIF without errors for packages that include VisionOS as a target

Copy link
Contributor

@jakepetroules jakepetroules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! I left comments requesting a couple of small changes that need to be addressed.

@Ryu0118 Ryu0118 requested a review from jakepetroules April 10, 2024 08:20
@MaxDesiatov
Copy link
Contributor

@swift-ci test

Copy link
Contributor

@jakepetroules jakepetroules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@MaxDesiatov MaxDesiatov merged commit 1c68e6c into swiftlang:main Apr 12, 2024
5 checks passed
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
#### Motivation:
In the process of generating PIF, I identified a missing case for
VisionOS in the implementation of the
`[PackageConditionProtocol].toPlatformFilters()`, which led to
assertionFailure when Package's platforms included VisionOS.

#### Modifications:
- Added a new case `.visionOS` in the switch statement within the
`toPlatformFilters()` extension for `[PackageCondition]`.
- Added a new static property `visionOSFilters` within
`PIF.PlatformFilter` to define filters specific to VisionOS.

#### Result:
With these changes, PIFBuilder can now generate PIF without errors for
packages that include VisionOS as a target
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
#### Motivation:
In the process of generating PIF, I identified a missing case for
VisionOS in the implementation of the
`[PackageConditionProtocol].toPlatformFilters()`, which led to
assertionFailure when Package's platforms included VisionOS.

#### Modifications:
- Added a new case `.visionOS` in the switch statement within the
`toPlatformFilters()` extension for `[PackageCondition]`.
- Added a new static property `visionOSFilters` within
`PIF.PlatformFilter` to define filters specific to VisionOS.

#### Result:
With these changes, PIFBuilder can now generate PIF without errors for
packages that include VisionOS as a target
bnbarham pushed a commit to bnbarham/swift-package-manager that referenced this pull request May 18, 2024
#### Motivation:
In the process of generating PIF, I identified a missing case for
VisionOS in the implementation of the
`[PackageConditionProtocol].toPlatformFilters()`, which led to
assertionFailure when Package's platforms included VisionOS.

#### Modifications:
- Added a new case `.visionOS` in the switch statement within the
`toPlatformFilters()` extension for `[PackageCondition]`.
- Added a new static property `visionOSFilters` within
`PIF.PlatformFilter` to define filters specific to VisionOS.

#### Result:
With these changes, PIFBuilder can now generate PIF without errors for
packages that include VisionOS as a target

(cherry picked from commit 1c68e6c)
shahmishal pushed a commit that referenced this pull request May 18, 2024
*Explanation*: I went through the last few months of PRs to make sure
anything relevant is cherry-picked. Most of these are NFC but
cherry-picking will help with conflicts. The main are:
* Better error message -
#7419
* Fix for visionOS for `--build-system xcode` -
#7448
* Package registry fix -
#7454
* Manifest editing API for adding target dependencies -
#7552
* Various sendable annotations

*Scope*: Package manifests/graphs with duplicate product/target names.
*Risk*: Very low
*Reviewed By*: Various, mostly @MaxDesiatov

---------

Co-authored-by: Max Desiatov <[email protected]>
Co-authored-by: k-kohey <[email protected]>
Co-authored-by: miharu <[email protected]>
Co-authored-by: Ryu <[email protected]>
Co-authored-by: Philipp Wallrich <[email protected]>
Co-authored-by: Boris Bügling <[email protected]>
Co-authored-by: coffmark <[email protected]>
Co-authored-by: Doug Gregor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants