Add content addressable gems support - #9773
Draft
jenshenny wants to merge 5 commits into
Draft
Conversation
Allow `gem build --ruby-abi X.Y` to build a gem that only supports a single Ruby ABI (a skinny gem) with a content addressable file name of the form <name>-<version>-<sha8>.gem, where the suffix is derived from the SHA-256 digest of the gem contents. The gem is built in memory and validated against the requested Ruby ABI. If required_ruby_version is unset it is derived from the ABI; the passed-in spec is only updated once the build succeeds. Co-authored-by: Jenny Shen <jenny.shen@shopify.com>
Co-authored-by: Jenny Shen <jenny.shen@shopify.com>
jenshenny
force-pushed
the
feature-branch-ca-changes-rubygems
branch
from
August 10, 2026 18:26
eee9d05 to
4a5def3
Compare
- Parse compact-index suffix as content address when hex + platform:= requirement present; carry content_address through resolver. - Prefer content-addressed gems in resolver when platform specificity ties. - Download and install SHA-named gem archives; fetch SHA-named gemspecs for development dependencies. - Preserve distinct resolver candidates by content_address in ==/hash. - Update BasicSpecification.content_address? calls to Gem::ContentAddress.match? (PR #172 refactor). Assisted-By: devx/fff388fa-6f3f-4c7a-8385-6e602f16830e
jenshenny
force-pushed
the
feature-branch-ca-changes-rubygems
branch
from
August 10, 2026 18:27
4a5def3 to
d849a56
Compare
Assisted-By: devx/5f8c508e-3e50-4812-b2c3-84379e7c3fce
Allow gem yank to select CA gems by Ruby ABI
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.
#9654
Gem commands
gem buildFlow Shopify/rubygems#171Gem install
Make sure the following tasks are checked