-
Notifications
You must be signed in to change notification settings - Fork 82
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
unpkg @latest does not point to the latest version #640
Comments
I think this was a point in time issue, I tried it and it now installs 6.0.0. |
@jimmylewis However I wonder how can it clean the cache faster. We publish OSS parts of our project to Visual Studio does show that a new version is found if I click the light bulb, however |
I think I understand better now. Libman does cache the metadata results for each package for 1 day, so that if you're repeatedly querying the same data, it's already downloaded. This behavior is intended to mitigate flakiness in the requests and is based on the assumption that most users will not need the absolute freshest data. However, your scenario is exactly the opposite of that assumption. I see two fixes that would both make lots of sense:
|
Relevant: dotnet/AspNetCore.Doc#31452 |
@CePur the linked issue sounds different: if I'm reading correctly, using In this original thread, the equivalent would be using (Side note: if libman didn't know about the 8.0.0 version originally, it would fail to resolve the library.) The linked threads sounds like either unpkg served the wrong file for https://unpkg.com/@microsoft/[email protected]/dist/browser/signalr.js, or you somehow had a wrong copy of that file in the libman cache (once cached, it wouldn't be downloaded again until the cache was cleared). Did clearing the cache resolve the problem? Are you still able to reproduce it? |
@jimmylewis When I set @microsoft/signalr@latest, it resolves to the wrong version. However, @microsoft/[email protected] resolves to the correct one. I just checked, so it shouldn't be related to 1-day cache but, using the CLI to clear and restore cache resolved the issue. Thanks for the detailed explanation and for pointing out the right direction. |
Oooh, I think I see the problem. When libman caches the Seems like the fix here should be to translate |
Describe the bug
@latest
does not point to the latest versionTo Reproduce
Expected behavior
Should be 5.0.10
Unpkg redirects properly: click this link https://www.unpkg.com/browse/@microsoft/signalr@latest/
The text was updated successfully, but these errors were encountered: