-
Notifications
You must be signed in to change notification settings - Fork 69
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
cljr-add-project-dependency
blows up when parsing Clojar artifacts
#255
Comments
thanks for this. although as this comment says the referenced lib's name is somewhat borked. I suppose if the issue can not be reproduced with well named libs I will close this. |
I understand that approach. At the same time -- if the library was able to be uploaded to Clojars with that format.. wouldn't that indicate that Would it be possible to dump a warning (and ignore) "borked" artifact names when parsing rather than crashing the artifact listing entirely? |
valid point. not sure it worths the effort tho as naming this artifact "1.1" was almost surely not the intention of the author. Happy to look at/accept a PR for this tho. |
Well - I guess something must be done. The function (which at least I use frequently) is useless until it's either fixed in refactor-nrepl or the library is taken down from Clojars :-) I'll give the PR a try! |
ah just realised I misunderstood the situation, sorry. This happens when we retrieve version info from clojars so this brakes the feature for everybody. Also as far as I remember clojars is immutable -- altho this is possible a good case for an exception of this rule. I would also try to raise this with the author of the lib and maybe clojars maintainers. But PR is still very welcome. |
Seems the author got notified already jacobobryant/flub#4 |
Sweet 👍. PR is inbound in a couple of minutes. |
Hi. Author of the borked lib here. Yes, I accidentally mixed up the artifact-id and version on that one. Sorry about that. Unfortunately I can't take it down from Clojars since they only delete artifacts when they contain vulnerabilities/private credentials. |
FYI, the Clojars docs give the regexes they use to check group/artifact/version here: https://github.com/clojars/clojars-web/wiki/About#what-is-the-legal-format-for-a-group-or-project-name |
Simple hack to work around the issue in the PR above ☝️. |
Cross-posting here.
Sorry for skipping the report template - all details should be in the linked Github issue:
syl20bnr/spacemacs#12385
Should also add that I'm running OpenJDK 8 (AdoptOpenJDK).
The text was updated successfully, but these errors were encountered: