Repository navigation
chore: pin the SPM checksum to wallet-bindings-v0.1.1 - #13
github-actions[bot] wants to merge 3 commits into
Conversation
|
🔍 OpenCodeReview found 3 issue(s) in this PR.
📄
|
| asset_url="$(gh api "repos/${GITHUB_REPOSITORY}/releases/tags/${head_tag}" \ | ||
| --jq '.assets[] | select(.name == "SHA256SUMS") | .url' 2>/dev/null)" \ | ||
| || asset_url="" |
There was a problem hiding this comment.
The --jq filter '.assets[] | select(.name == "SHA256SUMS") | .url' emits one line per matching asset. If the release ever carries more than one SHA256SUMS asset, asset_url will be multi-line and the subsequent gh api ... "${asset_url}" receives a malformed multi-line URL argument, failing closed with the misleading "unreadable SHA256SUMS" diagnostic. Limit to a single match (e.g. 'first(...[]) | .name == "SHA256SUMS" | .url' or pipe through head -n1) and/or add an explicit multi-match guard.
Suggestion:
| asset_url="$(gh api "repos/${GITHUB_REPOSITORY}/releases/tags/${head_tag}" \ | |
| --jq '.assets[] | select(.name == "SHA256SUMS") | .url' 2>/dev/null)" \ | |
| || asset_url="" | |
| asset_url="$(gh api "repos/${GITHUB_REPOSITORY}/releases/tags/${head_tag}" \ | |
| --jq 'first(.assets[] | select(.name == "SHA256SUMS") | .url)' 2>/dev/null)" \ | |
| || asset_url="" |
|
Rewriting the branch as a single signed commit — the bot-authored pin commit was unsigned and the main ruleset requires verified commits. Reopening right after. |
Attaches the released XCFramework checksum to the root Package.swift so SPM resolves the wallet-bindings-v0.1.1 artifact.
Checksum:
9049519c11ac14058420ce04cd1f5ce7b3f58cb0502e57013e88a21b0abd0f06The GitHub release for this tag is published before this PR is opened.
Merge to activate.