Skip to content

Content addressable prototype compact index#775

Draft
jenshenny wants to merge 5 commits into
content-addressable-prototypefrom
content-addressable-prototype-compact-index
Draft

Content addressable prototype compact index#775
jenshenny wants to merge 5 commits into
content-addressable-prototypefrom
content-addressable-prototype-compact-index

Conversation

@jenshenny

Copy link
Copy Markdown

No description provided.

jenshenny added 5 commits June 5, 2026 15:58
Skinny binaries (single ~> X.Y.Z platform gems) are addressed by content
(name-version-<sha>) with platform/ruby in the requirements section, and are
excluded from the v1/v2 indexes so older clients are unaffected.
}.freeze,
# The public "/v2" endpoint serves the content-addressable index, which is
# internally the v3 format (v3/* storage prefixes, versions_file_location_v3).
3 => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just noting here that we probably want to look at the V3 + /v2/ naming for CA vs the v2 naming for cooldown - can we do anything to make this less of a minefield for any future contributor?

platformed? && ruby_minor.present?
end

def number_and_platform

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
def number_and_platform
def version_token

I think number_and_platform would benefit from a rename to better reflect the fact it could return any of the below:

0.1.9
0.1.9-arm64-darwin-25
0.1.9-dd3dd678

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