Decode content-addressed gem metadata in remote CLI output - #175
Draft
girachawda wants to merge 1 commit into
Draft
Decode content-addressed gem metadata in remote CLI output#175girachawda wants to merge 1 commit into
girachawda wants to merge 1 commit into
Conversation
girachawda
marked this pull request as draft
August 5, 2026 22:28
Assisted-By: devx/522782f7-d29c-46ab-91ec-cfc2d2e7e59a
girachawda
force-pushed
the
gc/ca-cli-command-cleanup
branch
from
August 6, 2026 14:27
ebc9dd7 to
10b3b19
Compare
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.
TL;DR
Cleans up remote CLI output for content-addressed gems so
gem list -r,gem search -r, andgem info -rdisplay the real platform and Ruby ABI instead of the content-address hash.Addresses: ruby#9729
This is stacked on
ho/local-rubygems-installation-cato keep the diff focused on this issue while the CA dependency chain lands.Description
Compact-index entries for skinny/content-addressed gems use the content address as the version suffix, while the real platform and Ruby ABI live in compact-index requirements. Before this change, the remote query path treated the suffix as the platform, so CLI output could show a hash where users expect a platform.
This change:
platform:andruby:metadata.content_addressandruby_abionGem::NameTuple.gem list -r,gem search -r, andgem info -r.Testing
Manual tophat
Run this from the repo root. It starts a tiny local compact-index server with two skinny variants for the same gem/version/platform, then checks
gem list -r,gem search -r, andgem info -r.Expected output:
The content-address hashes (
abcdef12,fedcba98) should not be displayed in CLI output.