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

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

Open
Biserkov opened this Issue Sep 14, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@Biserkov
Copy link

Biserkov commented Sep 14, 2018

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.

@martinklepsch

This comment has been minimized.

Copy link
Collaborator

martinklepsch commented Sep 15, 2018

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 :)

@Biserkov

This comment has been minimized.

Copy link

Biserkov commented Sep 18, 2018

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

@martinklepsch

This comment has been minimized.

Copy link
Collaborator

martinklepsch commented Sep 19, 2018

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 :)

@Biserkov Biserkov changed the title An exception occured, sorry about that! Better error message when there are no "stable" artifacts, only snapshots Sep 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment