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

The API of anaconda.org is providing incorrect information about the latest version. #943

Closed
akikuno opened this issue May 22, 2024 · 9 comments

Comments

@akikuno
Copy link

akikuno commented May 22, 2024

When I tried to create a badge using shields for the version of the package registered on conda-forge, an old version (v0.3.1) was reported instead of the latest version (v0.4.1). I inquired about this issue with shields.
badges/shields#10177

Upon inquiry, it was found that the "latest_version" at https://api.anaconda.org/package/conda-forge/wslPath is "0.3.1", and the latest version, which is 0.4.1, is not reflected. Although version "0.4.1" is registered under "versions", why is "latest_version" showing as 0.3.1?

On top of that, in the wslpath-feedstock, the version is displayed as 0.3.1. On the other hand, the version displayed on anaconda.org is 0.4.1. I had asked conda-forge and they instructed me to post here

I would appreciate any guidance on how to address this issue.

Tasks

No tasks being tracked yet.
@akikuno
Copy link
Author

akikuno commented May 30, 2024

CC @jezdez @jaimergp (for awareness). Thank you in advance.

@jakirkham
Copy link
Member

It is worth noting other info about the 0.4.1 is in the JSON output from the API call. Just for some reason latest_version was not updated when the new version was published. So this could be as simple as updating that field

@akikuno
Copy link
Author

akikuno commented May 31, 2024

@jakirkham Thank you very much for your guidance! How can we update the field?

By the way, while I am unsure of the reason why latest_version was not updated, I suspect that one of the factors might be that when upgrading from 0.3.1 to 0.4.0, the file extension registered with Anaconda changed from .tar.bz2 to .conda.

https://anaconda.org/conda-forge/wslpath/files

image

@jakirkham
Copy link
Member

Idk unfortunately. Am just another OSS contributor/user like you 🙂

The package format change is also interesting. We ran into a potentially related issue with the CDN on a different channel recently where a package format change affected CDN behavior ( #945 )

@jezdez
Copy link
Member

jezdez commented May 31, 2024

We're looking into it

@jaimergp
Copy link
Contributor

Hm, the .conda / .tar.bz2 distinction is indeed interesting. My workaround for this in other projects is to sort all package entries by version using conda's VersionOrder as the key, but that might be infeasible for the shields API.

@jakirkham
Copy link
Member

Even so, it seems reasonable that latest_version would be up-to-date

@jameslamb
Copy link

Linking some other relevant things.

Hopefully those provide some clues to the root cause.

@akikuno
Copy link
Author

akikuno commented Sep 1, 2024

@jameslamb

Thank you for your valuable comments!
After upgrading the version of wslPath and updating the conda-forge feedstock, the latest_version is now correctly reflecting the latest version.

To be honest, the root cause is still unclear, but it might be related to the fact that the update was done by regro-cf-autotick-bot this time, while the previous version was updated manually, which could explain why the latest_version was not updated before.

https://github.com/conda-forge/wslpath-feedstock/pulls?q=is%3Apr+is%3Aclosed

In any case, the issue has been resolved, so I will close this.

Thank you for all your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

5 participants