mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Fix static Linux SDK version hardcoding ### Motivation * Nightly CI was failing with a checksum mismatch because the static Linux SDK filename was hardcoded to `_static-linux-0.0.1`, but the SDK has since been released as `0.1.0` with a different checksum. * The swift.org releases API returns a `version` field alongside the checksum for the `static-sdk` platform, so the version can be resolved dynamically. ### Modifications * Added `extract_static_sdk_version()` to read the `version` field from the releases API response. * In the `version` install path, override `sdk_suffix` with the API-provided version rather than the hardcoded `0.0.1`. ### Result * The correct SDK filename (`_static-linux-0.1.0`) is now resolved and hopefully will continue to work for future version bumps.