Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back repodata_use_zst #2790

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Conversation

jonashaag
Copy link
Collaborator

Some enterprise Conda channel sources like Artifactory don't properly invalidate the repodata.json.zst. This adds back the flag to disable reading the zst file

&& m_metadata.has_zst.value().has_expired();
bool has_zst = m_metadata.check_zst(channel_context, p_channel);
if (!has_zst && (is_expired || !has_value))
if (ctx.repodata_use_zst)
Copy link
Member

Choose a reason for hiding this comment

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

No else clause? What happens when we deactivate it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Consider this the same case as !has_zst && !is_expired && has_value) in the old code. No zst checking is done. Not sure exactly how the code that runs after this works, but if I'm not mistaken it should not change behaviour.

@jonashaag jonashaag merged commit e11fe5a into mamba-org:main Sep 1, 2023
23 checks passed
@jonashaag jonashaag deleted the repodata-use-zst branch September 1, 2023 12:56
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.

None yet

3 participants