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

Issue with package version sorting when .bcr.* versions are involved #142

Closed
redsun82 opened this issue Feb 28, 2024 · 2 comments · Fixed by #148
Closed

Issue with package version sorting when .bcr.* versions are involved #142

redsun82 opened this issue Feb 28, 2024 · 2 comments · Fixed by #148

Comments

@redsun82
Copy link

I've noticed that for the zstd and the google test packages there are .bcr.1 packages that even though are more recent than the latest version and they presumably fix issues with the bazel central registry patching, they are not shown up as the latest versions nor appear in the correct order in the all versions list.

This has caused a problem specifically with zstd, as the .bcr.1 version contains this fix without which we could not use that dependency, and it was not at all clear from the start we needed to get that version.

@hobofan
Copy link
Member

hobofan commented Feb 29, 2024

Thanks for bringing this up! At the core this sounds like what has already been discussed in #54 (and #22).

The efforts on that front have become a bit stale on my front, but I'll try to push it forward soon (it's essentially fixed on a technical level, but need to go through some organizational motions so that I don't end up as the single point of failure here).

@lalten
Copy link

lalten commented Mar 28, 2024

Why does the BCR UI even re-sort the versions? Wouldn't it be enough to go with the order of the version list in metadata.json? (#54 (comment))

Wyverald added a commit that referenced this issue Jul 24, 2024
Got bored and wanted to explore Typescript.

Tested on https://typescriptlang.org/play:

    > console.log(sortVersions(['1.2.3', '1.2.3-d', '1.2.3.bcr.1', '1.2.3rc3', '1', 'k']))
    ["k", "1.2.3rc3", "1.2.3.bcr.1", "1.2.3", "1.2.3-d", "1"] 

Addresses #54.

Fixes #142.
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 a pull request may close this issue.

3 participants