cljdoc icon indicating copy to clipboard operation
cljdoc copied to clipboard

Better error message when there are no "stable" artifacts, only snapshots

Open Biserkov opened this issue 7 years ago • 3 comments

https://cljdoc.xyz/d/twotree.longest-path/twotree.longest-path/CURRENT

This one works:

https://cljdoc.xyz/d/twotree.longest-path/twotree.longest-path/0.1.0-SNAPSHOT/


Details: When using CURRENT or /badge cljdoc looks up the latest stable release for an artefact and then uses that version to initiate a redirect or render a badge respectively. If there is no stable release (i.e. only SNAPSHOT releases) this will not work and an appropriate error message should be shown.

Biserkov avatar Sep 14 '18 21:09 Biserkov

CURRENT does not include snapshots (in order to always point to “stable” versions).

I think this might also be the cause for the badge issue you opened assuming there is no non-SNAPSHOT releases for this artifact.

PS. I’m on a sailboat for the next two weeks so might be a bit slow to reply etc :)

martinklepsch avatar Sep 15 '18 18:09 martinklepsch

I assumed this was the problem as well. I think the error message can be more informative and will further reduce the friction.

Biserkov avatar Sep 18 '18 19:09 Biserkov

I absolutely agree. Feel free to update the issue title & description to capture this. Also a PR is obviously welcome by you or anyone else :)

martinklepsch avatar Sep 19 '18 09:09 martinklepsch