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

Disable ExistentialAny temporarily #9

Merged

Conversation

czechboy0
Copy link
Collaborator

Motivation

Unfortunately until we adopt 5.9, adding ExistentialAny on upstream packages has unintended consequences for some downstream packages, so disabling for now. Details in apple/swift-openapi-generator#120

Modifications

Disabled the feature enforcement, but the code changes are there, so downstream adopters can still use them.

Result

We won't be seeing the issue described in apple/swift-openapi-generator#120.

Test Plan

PR CI, which discovered the original issue.

@czechboy0 czechboy0 requested a review from simonjbeaumont July 17, 2023 07:41
@czechboy0
Copy link
Collaborator Author

@swift-server-bot test this please

@simonjbeaumont
Copy link
Collaborator

Rather than just disable it everywhere, let's enable it in just the Swift 5.9+ builds, by adding -Xswiftc -enable-upcoming-feature -Xswiftc ExistentialAny to the 5.9 and nightly docker-compose files.

This way we won't regress.

@czechboy0 czechboy0 merged commit 875fecf into swift-server:main Jul 17, 2023
@czechboy0 czechboy0 deleted the hd-disable-existential-any-temporarily branch July 17, 2023 09:30
@czechboy0 czechboy0 added the semver/none No version bump required. label Jul 17, 2023
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.

2 participants