Skip to content

Fix installer for GoReleaser archives - #193

Closed
robzolkos wants to merge 1 commit into
masterfrom
fix/v4-installer-assets
Closed

Fix installer for GoReleaser archives#193
robzolkos wants to merge 1 commit into
masterfrom
fix/v4-installer-assets

Conversation

@robzolkos

@robzolkos robzolkos commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

What

  • download the versioned archives produced by GoReleaser
  • verify the selected archive against the shared checksums.txt
  • extract tarballs and Windows zip archives before installing the binary
  • support every published OS/architecture pair, including Windows ARM64, FreeBSD, and OpenBSD
  • support the platform-native SHA-256 tools available across those systems

Why

The v4 installer requested unversioned raw binaries and per-platform checksum files, but the release publishes versioned archives and one shared checksum file. As a result, the documented curl installer returned a 404 for v4.0.0.

Testing

  • GOWORK=off make check passes
  • bash -n scripts/install.sh passes
  • git diff --check passes
  • live install of the published v4.0.0 Linux amd64 archive succeeds and reports version 4.0.0
  • published v4.0.0 asset names and archive contents verified for all supported OS/architecture pairs

Summary by cubic

Fixes the v4 curl installer by downloading versioned GoReleaser archives, verifying them against the shared checksum file, and extracting before install. This removes the 404 error and adds support for Windows ARM64, FreeBSD, and OpenBSD.

  • Bug Fixes
    • Download platform archives (tar.gz/zip) and verify against checksums.txt.
    • Use native SHA-256 tools when available: sha256sum, shasum, sha256, or openssl.
    • Extract archives, install the binary, and set executable permissions.
    • Support all published OS/arch pairs, including Windows ARM64, FreeBSD, and OpenBSD.

Written for commit 57bc31e. Summary will update on new commits.

Review in cubic

Copilot AI review requested due to automatic review settings July 27, 2026 21:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the scripts/install.sh curl-based installer to download and verify the GoReleaser-produced, versioned release archives (instead of raw binaries), then extract and install the fizzy executable across all published OS/arch targets.

Changes:

  • Switch download target to fizzy_<version>_<os>_<arch>.{tar.gz|zip} and validate it against the shared checksums.txt.
  • Add platform-aware SHA-256 verification using available native tools (sha256sum, shasum, sha256, or openssl).
  • Extract archives (tarballs and Windows zip) prior to copying the binary into the install directory; add FreeBSD/OpenBSD + Windows ARM64 support.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/install.sh
Comment on lines +84 to +88
if [ "$ARCHIVE_FORMAT" = "zip" ]; then
if ! command -v unzip >/dev/null 2>&1; then
echo "ERROR: unzip is required to install Fizzy on Windows"
exit 1
fi
@robzolkos

Copy link
Copy Markdown
Collaborator Author

Resolved in #194

@robzolkos robzolkos closed this Jul 27, 2026
@jeremy
jeremy deleted the fix/v4-installer-assets branch July 27, 2026 21:36
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.

2 participants