You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: update_swift_package.sh matches binary targets by name, not line number
The script rewrote Package.swift by hardcoded line numbers. When #1667 added
3 dependency lines above the binary targets, those numbers drifted and the
5.5.2 release overwrote the .binaryTarget boundaries, producing an
unparseable manifest that broke SwiftPM consumers.
Locate each .binaryTarget by the framework name in its url line and rewrite
only the version and the following checksum in place, preserving structure
so layout shifts can't corrupt it. Add fail-loud guards (empty checksum,
missing url/checksum) so a future mismatch errors instead of silently
corrupting. Verified end-to-end: reproduces the known-good 5.5.2 manifest
byte-for-byte and a missing target now exits non-zero.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments