fix: update command handles archived releases and universal binaries#254
Merged
TimPietruskyRunPod merged 3 commits intomainfrom Mar 12, 2026
Merged
fix: update command handles archived releases and universal binaries#254TimPietruskyRunPod merged 3 commits intomainfrom
TimPietruskyRunPod merged 3 commits intomainfrom
Conversation
the update command broke in v2.0.0 when goreleaser switched to archive-only
releases (tar.gz/zip) and darwin universal binaries. the old code expected raw
binary assets named runpodctl-{os}-{arch} which no longer existed.
- goreleaser: add legacy build+archive to publish raw per-arch binaries for
backward compat with old runpodctl versions
- update: match against archived asset names (tar.gz/zip) and extract binary
- update: map darwin to universal binary asset (darwin-all)
- update: use temp files for download and extraction
- update: add "already up to date" message
justinwlin
approved these changes
Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
legacybuild in goreleaser that publishes raw per-arch binaries (runpodctl-darwin-arm64,runpodctl-linux-amd64, etc.) so old runpodctl versions can still self-update.tar.gz/.zip) and extracts the binary, and maps darwin to the universal binary (darwin-all)Context
since v2.0.0, goreleaser only produces archives (
runpodctl-darwin-all.tar.gz) and no longer publishes raw binaries. the old update command expected exact matches onrunpodctl-{os}-{arch}which no longer existed, causingplatform darwin-arm64 not supported in latest versionfor all users trying to self-update.Test plan
runpodctl updateon darwin-arm64 with the new code (archive extraction path)runpodctl updatewhen already on latest shows "already up to date"