mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #121] [MERGED] Fix build upload State type and handle empty checksums #303
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#303
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/121
Author: @swiftlysingh
Created: 1/24/2026
Status: ✅ Merged
Merged: 1/24/2026
Merged by: @rudrankriyam
Base:
cursor/build-upload-full-flow-06db← Head:fix/build-upload-improvements📝 Commits (1)
093b64dFix build upload State type and handle empty checksums gracefully📊 Changes
2 files changed (+16 additions, -14 deletions)
View changed files
📝
cmd/builds_commands.go(+11 -9)📝
internal/asc/client_builds.go(+5 -5)📄 Description
Summary
Fixes two issues found during end-to-end testing of #100 with a real IPA upload to App Store Connect.
Fix
BuildUploadAttributes.Statetype — The API returnsstateas an object (withstate,errors,warningsfields), not a plain string. Changed from*stringto*AppMediaAssetStateso the response can be deserialized. Without this fix, every upload attempt fails with a JSON unmarshal error.Handle empty checksums gracefully — When
--checksumis requested but the API returns asourceFileChecksumsobject with no actual algorithms populated, the command now prints a warning to stderr and continues instead of failing. This matches real-world API behavior where checksums aren't always provided.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.