Skip to content

fix: correct macOS binary name expected in self-update tarball#107

Merged
JosiahParry merged 1 commit intomainfrom
fix/self-update-macos-tarball-extraction
Mar 22, 2026
Merged

fix: correct macOS binary name expected in self-update tarball#107
JosiahParry merged 1 commit intomainfrom
fix/self-update-macos-tarball-extraction

Conversation

@pat-s
Copy link
Copy Markdown
Member

@pat-s pat-s commented Mar 22, 2026

Summary

  • The macOS CI pipeline creates tarballs by cd-ing into the bin directory before running gtar, so the tarball contains a flat ricochet entry. The code was incorrectly looking for ricochet/{version}/bin/ricochet which never matched, causing self-update to fail on macOS.
  • Added tests for extract_binary_from_tarball covering exact match, filename fallback, not-found error, and platform-specific binary naming.

Fixes #100

The macOS CI pipeline creates tarballs by cd-ing into the bin directory
before running gtar, so the tarball contains a flat "ricochet" entry.
The code was incorrectly looking for "ricochet/{version}/bin/ricochet"
which never matched, causing self-update to fail on macOS.

Fixes #100
@pat-s pat-s requested a review from JosiahParry March 22, 2026 19:20
@JosiahParry JosiahParry merged commit 1dfb406 into main Mar 22, 2026
2 checks passed
@JosiahParry JosiahParry deleted the fix/self-update-macos-tarball-extraction branch March 22, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: self update fails to extract binary from tarball

2 participants