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

Always re-execute a registry query when cache lookups fail #4326

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

Fixes #4288.

The underlying problem is that we would always assume that a cached query to the backend is correct, so we wouldn't notice a newly published version. This rearranges the logic so any cached query that doesn't match a version constraint will force us to re-query the backend.

Copy link
Contributor

@theduke theduke left a comment

Choose a reason for hiding this comment

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

Can we have a test for this?

I guess it's a bit awkward because it would require publishing a package.

@Michael-F-Bryan Michael-F-Bryan merged commit 5563c1c into master Nov 23, 2023
51 of 53 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the retry-registry-queries branch November 23, 2023 14:36
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.

wasmer run doesn't pick the latest package from the registry
2 participants