Repository navigation
feat(release): publish the binaries as gzip tarballs - #1688
Merged
Merged
Conversation
GitHub serves release assets uncompressed, so every install moved the whole executable, about 105MB per platform. Each platform now ships as infer-<os>-<arch>.tar.gz holding one file, infer or infer.exe, which is about a third of the size. checksums.txt and its Cosign bundle cover the archives. install.sh, install.ps1 and the npm postinstall download the archive and extract it with the system tar. The container image still builds from the workflow's raw artifacts and is unchanged. BREAKING CHANGE: the raw infer-<os>-<arch> release assets are gone. Download infer-<os>-<arch>.tar.gz and extract it instead. Closes #1687
This was referenced Nov 3, 2026
Contributor
|
🎉 This PR is included in version 0.242.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
GitHub serves release assets uncompressed, so every install moved the whole executable, about 105MB per platform (80MB after #1686). Each platform now ships as
infer-<os>-<arch>.tar.gzholding one file,infer(infer.exeon Windows).checksums.txtand its Cosign bundle cover the archives.release.ymlarchives the artifacts in the release job with GNU tar (--transformrenames the entry,--owner=0 --group=0), checksums the archives and verifies the new asset list.release.config.mjsuploads the archives.install.sh,install.ps1andnpm/bin/install.jsdownload the archive and extract it with the systemtar, which macOS, Linux and Windows 10+ ship.docs/installation.mdanddocs/binary-verification.mddescribe the archives.--build-context binaries=dist/, unchanged.The raw
infer-<os>-<arch>release assets are gone..tar.gzAffected repos
Consumers of the raw asset names outside this repository, found with
gh search codeand a grep of shallow clones:backend/src/env.rsmaps the platform to the raw asset name andbackend/src/cli_install.rsdownloads it fromreleases/latest/download, verifies it againstchecksums.txtand renames it into place. fix: install the CLI from its release tarball desktop#420 downloads the archive, verifies it and extracts it. Desktop builds already installed keep calling the raw URL, so that desktop release should go out before this merges.install.sh. Neither changes.Verification
install.shand the npm postinstall run against a local server holding a.tar.gzbuilt from this branch's binary and itschecksums.txt: both install a workinginfer, and a tampered checksum fails the npm install.infer, the Windows oneinfer.exe, both owned by root.task precommit:runpasses.Closes #1687