-
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 swift-crypto 2.4.1 #6431
Conversation
Motivation: swift-crypto 2.4.1 includes updates in BoringSSL that cause `Unsafe*Pointer<EVP_PKEY>` become `OpaquePointer` and without this code adjustment SwiftPM fails to build with `error: cannot find type 'EVP_PKEY' in scope`. Modifications: - Update dependency from 2.4.0 to 2.4.1 - Replace `Unsafe*Pointer<EVP_PKEY>` with `OpaquePointer`.
This requires changes to update-checkout. |
swiftlang/swift#65157 |
Ready to merge? This would unblock a couple of other pull requests. |
Need @shahmishal to merge the update-checkout changes, otherwise this patch would break other CI. |
BTW, what will happen in swift-crypto 2.4.2? Is this considered a bug that'll get fixed (which implies we should use exact still) or will it stay this way? |
No, it's not a bug. It is a part of BoringSSL updates that this version of swift-crypto took in, and will stay. swift-crypto updates its vendored copy of BoringSSL once a month or so. Usually the changes are fairly minor and non-breaking, but sometimes (like this one) the updates are big and cause problems. The breaking change from swift-crypto 1.x to 2.x was similar to what happened here. No one is supposed to depend on In the meantime and for 5.9, SwiftPM could as a safety measure keep using exact version (2.4.1). @neonichu @tomerd @MaxDesiatov Do we want to do that? If so I can update this and the PR for 5.9 to use exact. |
Oh I see, thanks for the explanation. I don't have a strong opinion, this seems rare enough that we can live with it. Just wanted to make sure we don't have a guaranteed breakage in the near future. For 5.9 specifically it might make sense to pin if we are somewhat certain we won't need to update it again. |
Committed conflicting PR just to unblock |
swiftlang/swift#65157 |
swiftlang/swift#65157 |
@swift-ci test windows |
swiftlang/swift#65157 |
1 similar comment
swiftlang/swift#65157 |
@swift-ci test windows |
Windows regression introduced in swiftlang/swift#65085 |
@swift-ci test windows |
@swift-ci please test Windows platform |
swiftlang/swift#65157 |
1 similar comment
swiftlang/swift#65157 |
@swift-ci test windows |
Motivation:
swift-crypto 2.4.1 includes updates in BoringSSL that cause
Unsafe*Pointer<EVP_PKEY>
becomeOpaquePointer
and without this code adjustment SwiftPM fails to build witherror: cannot find type 'EVP_PKEY' in scope
.Modifications:
Unsafe*Pointer<EVP_PKEY>
withOpaquePointer
.