-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[conan.io/center] Versions may not be displayed in the "correct" order #9418
Comments
I totally agree with this issue. Maintainer of the recipe should have possibility to set version order. +1 from me. |
@SpaceIm if implemented this only affects display order at Conan center website, right? Conan client cannot benefit from it? |
I personally believe it's something to be implemented in the client, as a first-class feature. |
...and it can get really complex with libraries using two sets of versions #9544 Of course, nothing generic would work, and someone/somewhere needs to take care of it in a way that people can contribute other weird versioning schemas that will pop up from time to time. I see different proposals:
I would say that first we need to open this issue on the Conan client repository and get some feedback from that side. Then, we can think about something cci-specific if needed. |
I don't want to forget about something that @SSE4 has suggested just some minutes ago:
Then, the logic in that library could implement something like: // Check first if there is anything custom for that name
if (name == "xxxx") {
return custom::compareXXX;
} else if (name == "yyyy") {
return custom::compareYYY;
}
// Now use the versioning scheme
if (versioning_schema == "semver") {
return semverCompare;
} else if (versioning_schema == "cci.date") {
return cciDateCompare;
} else if (....) {
...
} else {
return lexicographic;
} |
I would like to collect here patterns we can see in libraries that are contributed to ConanCenter:
|
|
This is an issue with cci version ordering that we're looking to solve UI-side in the website, closing as duplicated of conan-io/web#184 |
Sometimes, recipes mix different versioning, either because library author has change versioning or because we have both
cci.yyyymmdd
and regular versions.As a result, looking at versions in https://conan.io/center, it's not obvious for users what is the last version.
For example spirv-headers.
In https://conan.io/center (https://conan.io/center/spirv-headers), it claims that
cci.20211010
is the last version (yes as soon as you have acci.yyyymmdd
, it's over it will always be the latest version for conan.io), and order is:It's completely wrong,
1.3.204.0
is the last version, and order should be:Because there is nothing obvious in this order, I suggest to enforce a specific order in config.yml so that https://conan.io/center can rely on it.
The text was updated successfully, but these errors were encountered: