Skip to content
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

Use SPM API diff checker #334

Merged
merged 1 commit into from
Mar 23, 2022
Merged

Conversation

FranzBusch
Copy link
Member

Motivation:

SPM has built in functionality to check the API of modules against a target git treeish. We can use this to simplify our check_no_api_breakages.sh script. Closes apple/swift-nio#1239

Modifications:

This PR, exchanges the direct calls to Swift's API checker with the new SPM diagnose-api-breaking-changes tool. This allows us to get rid of the manual module parsing, build invocations and result comparisons.

Result:

We are now using SPMs diagnose-api-breaking-changes to check for breaking changes.

@Lukasa Lukasa added the semver/none No version bump required. label Mar 23, 2022
### Motivation:

SPM has built in functionality to check the API of modules against a target git treeish. We can use this to simplify our `check_no_api_breakages.sh` script. Closes apple/swift-nio#1239

### Modifications:

This PR, exchanges the direct calls to Swift's API checker with the new SPM `diagnose-api-breaking-changes` tool. This allows us to get rid of the manual module parsing, build invocations and result comparisons.

### Result:

We are now using SPMs `diagnose-api-breaking-changes` to check for breaking changes.
@FranzBusch FranzBusch enabled auto-merge (squash) March 23, 2022 15:04
@FranzBusch FranzBusch force-pushed the breaking-change-checker branch from e28deea to 8716c78 Compare March 23, 2022 15:45
@FranzBusch FranzBusch merged commit c897189 into apple:main Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

switch to SwiftPM's swift package experimental-api-diff
2 participants