Skip to content

Opening a crates versionless url links to prerelease versions #223

Closed
@Nemo157

Description

@Nemo157

I just pushed a test crate to https://docs.rs/nemo157, there was a 0.3.0 version published previously and I just added a 0.3.1-pre version. I expected the versionless url to still redirect to the latest non-prerelease version, but instead it links to the prerelease version; and explicitly going to https://docs.rs/nemo157/0.3.0/nemo157/ shows a bright orange "Go to latest version" link.

I think for the purposes of promoting a stable ecosystem it would be best to treat prerelease versions as ineligible to be the latest version unless a crate has no normal versions available. Having them still listed under the versions for the crate and allowing them to be linked to directly would still be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bugE-easyEffort: Should be easy to implement and would make a good first PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions