Skip to content

fix: sort packages when serializing repodata#1779

Merged
wolfv merged 5 commits intoconda:mainfrom
baszalmstra:fix/sort_on_serialize
Oct 27, 2025
Merged

fix: sort packages when serializing repodata#1779
wolfv merged 5 commits intoconda:mainfrom
baszalmstra:fix/sort_on_serialize

Conversation

@baszalmstra
Copy link
Copy Markdown
Collaborator

@wolfv
Copy link
Copy Markdown
Contributor

wolfv commented Oct 27, 2025

Why wouldn't we want to use a BTreeMap in the first place?

Copy link
Copy Markdown
Contributor

@wolfv wolfv left a comment

Choose a reason for hiding this comment

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

I think we should also add a test to ensure that repodata is indeed serialized alphabetically because IIRC it's an important feature for our fast repodata loader (that does a binary search expecting the pacakges to be alphabetically sorted).

@wolfv wolfv merged commit 5cf1659 into conda:main Oct 27, 2025
17 checks passed
@github-actions github-actions bot mentioned this pull request Oct 27, 2025
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