badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.42k stars 5.49k forks source link

Sonatype snapshot version is not picked up #7305

Open TWiStErRob opened 2 years ago

TWiStErRob commented 2 years ago

Are you experiencing an issue with...

shields.io

🐞 Description

As shown and described in https://github.com/kotest/kotest/issues/2660

The badge is not picking up the snapshot version, even though the version is there: https://oss.sonatype.org/content/repositories/snapshots/io/kotest/kotest-framework-engine/5.0.0.759-SNAPSHOT/

🔗 Link to the badge

https://img.shields.io/nexus/s/https/oss.sonatype.org/io.kotest/kotest-framework-engine.svg?label=snapshot&style=for-the-badge which redirects to https://img.shields.io/nexus/s/io.kotest/kotest-framework-engine.svg?label=snapshot&server=https%3A%2F%2Foss.sonatype.org&style=for-the-badge

💡 Possible Solution

No response

calebcartwright commented 2 years ago

You'll have to check with the Nexus folks because their search API is returning a 404 for your artifact. Shields is obviously not a system of record, so when we receive a badge request we have to reach out to the respective system of record, and our badge content is based on the responses we received from said upstream providers.

https://oss.sonatype.org/service/rest/v1/search?group=io.kotest&name=kotest-framework-engine&prerelease=true&sort=version

$ curl -I -L "https://oss.sonatype.org/service/rest/v1/search?group=io.kotest&name=kotest-framework-engine&prerelease=true&sort=version"

HTTP/2 404 
date: Sat, 20 Nov 2021 19:40:01 GMT
content-type: text/html; charset=UTF-8
server: Nexus/2.14.20-02
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff

Not sure if #6129, #2696, and/or the upstream issues contained within those are relevant in this case.