fix: (de)serialize info.repodata_revisions as dictionary - #2485
Merged
baszalmstra merged 1 commit intoJun 9, 2026
Merged
Conversation
Update the top-level info.repodata_revisions (and the sharded index equivalent) to match the latest CEP draft (conda/ceps#146), which describes it as a dictionary keyed by revision identifier (e.g. "v3") instead of a list. The in-memory representation is a revision-keyed map so a revision cannot appear twice. The Python indexing bindings accept the same dictionary shape for repodata_revisions, with timestamps given as datetime values for consistency with the rest of the API. Includes a regression test that reads the dictionary form from a repodata file in the test data and asserts it parses correctly. https://claude.ai/code/session_01ModY1fX2YqL6ULMbJtfqWa
baszalmstra
force-pushed
the
claude/update-repodata-revisions-pWZ7s
branch
from
June 4, 2026 07:30
0441119 to
f0c5c85
Compare
wolfv
approved these changes
Jun 5, 2026
Merged
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.
Description
Updates
info.repodata_revisionsto match the latest CEP draft (conda/ceps#146), which describes it as a dictionary keyed by revision identifier (e.g."v3") rather than a list. Both the regular and sharded repodata now read and write this dictionary form, and the in-memory representation is a revision-keyed map so a revision cannot appear twice.The Python indexing bindings accept the same dictionary shape for
repodata_revisions, with timestamps given asdatetimevalues for consistency with the rest of the API.@danyeaw
How Has This Been Tested?
AI Disclosure
Tools: Claude
Checklist: