Skip to content

Incorrect "no builds" badge shown for complex version string #395

@repi

Description

@repi

We have a crate that has a version string 0.1.0+4.1, when linking to the docs.rs badge for it it shows up as "no build" when using this string: https://docs.rs/physx-sys/badge.svg.

image

Although the actual link works and goes to the correct built documentation for that specific crate https://docs.rs/physx-sys/0.1.0+4.1/physx_sys/.

Looks like there may be some specific badge picture generation error for complex version strings, maybe it tries to find version just 0.1.0, which doesn't exist, in the picture selection instead of the full 0.1.0+4.1. While the page link itself uses the correct one.

Cargo itself when one references a crate with such a more complex version string does only use the first semver portion (MAJOR.MINOR.PATCH) and gives a warning if one specifies the rest (which it ignores).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions