Skip to content

[6.0] Make supportedTriples optional in artifactbundle metadata #7516

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
merged 1 commit into from
Apr 30, 2024

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Apr 30, 2024

Cherry-pick of #7432.

Explanation: We don't have a good way to express a Swift SDK that can be used on any host platform except for listing up all possible platforms. This change allows supportedTriples field to be null or missing to express that the SDK is universally usable. Also this fixes a minor issue around swift experimental-sdk configuration, that did not take care of runtime compatibility of OS version in host triples.
Scope: Isolated to Swift SDKs.
Risk: Low due to limited scope. Incubated on the main branch for 30 days with no known regressions.
Testing: Automated. New test cases to ArtifactsArchiveMetadataTests.swift and SwiftSDKTests.swift.
Issue: N/A
Reviewer: @MaxDesiatov on the original PR. @kateinoigakukun and @bnbarham on the cherry-pick PR.

Make `supportedTriples` optional in artifactbundle metadata

### Motivation:

We don't have a good way to express a Swift SDK that can be used on any
host platform except for listing up all possible platforms.

### Modifications:

This change allows `supportedTriples` field to be null or missing to
express that the SDK is universally usable.
Also this fixes a minor issue around `swift experimental-sdk
configuration`, that did not take care of runtime compatibility of OS
version in host triples.

### Result:

SwiftPM now accepts host-platform independent Swift SDK
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov added swift 6.0 Related to Swift 6.0 release branch add to change log labels Apr 30, 2024
@MaxDesiatov MaxDesiatov enabled auto-merge (squash) April 30, 2024 16:25
@MaxDesiatov MaxDesiatov merged commit 0b53c3c into release/6.0 Apr 30, 2024
@MaxDesiatov MaxDesiatov deleted the maxd/6.0-optional-triple branch April 30, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants