-
Notifications
You must be signed in to change notification settings - Fork 44
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
Use archiveUrl when specified. #1174
Conversation
Not sure this is true if I read it right. pub doesn't rely on the cached version listings - only as a heuristic to speed up requesting version listings for transitive dependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ah you were talking about the cached version listings on pub.dev - just forget what I wrote then. |
@isoos I don't understand this concern. The Do you mean that But regardless of whether we could reuse something from |
Exactly, and that is causing analysis failures right now. This PR allows us to feed the The root cause of this issue is the cache: we receive a new version, but the cache may be stale for 10 minutes (either because we have split traffic or failed to purge it), during which any analysis that uses the API will fail for the new version. |
Could we make some retry-logic in pana (or perhaps pub-worker) to take these possible 10 minutes into account?
...or something even more clever |
I don't think Coming from that angle, maybe this change is not needed either, instead, we should have a better retry logic on pub.dev, e.g. invalidating the cache if the first attempt of a latest version fails. (And do the second attempt after the cache has been invalidated.) |
Closing this as we will land the cache purge instead. |
dart pub
to download and extract packages. #1170, as it also relies on the potentially cached version list.