Skip to content

fix: download tarball to file instead of bash variable#116

Merged
IyadhKhalfallah merged 1 commit intomainfrom
fix/homebrew-tarball-nullbyte
Apr 11, 2026
Merged

fix: download tarball to file instead of bash variable#116
IyadhKhalfallah merged 1 commit intomainfrom
fix/homebrew-tarball-nullbyte

Conversation

@IyadhKhalfallah
Copy link
Copy Markdown
Owner

Summary

  • Fixes the Homebrew formula update step failing with "ignored null byte in input" and empty version
  • Root cause: TARBALL=$(curl ...) stores binary .tgz data in a bash variable, which silently strips null bytes, corrupting the archive
  • Fix: download to a temp file with curl -o and operate on the file directly

Test plan

  • Trigger a release and verify the Homebrew formula update step passes
  • Confirm the SHA256 hash in the formula matches the actual tarball

🤖 Generated with Claude Code

Bash variables strip null bytes from binary data, corrupting the .tgz
tarball and causing the version check to always fail with empty output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@IyadhKhalfallah IyadhKhalfallah merged commit 186925e into main Apr 11, 2026
3 checks passed
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.

1 participant