-
Notifications
You must be signed in to change notification settings - Fork 48
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
ensure=>latest errors with non-standard versions #38
Comments
@rosenbergj a pull request would be welcomed :) |
I'll try to make time to attempt it, but I'm really not a Ruby dev. |
i can probably do it this weekend
…On Apr 20, 2017 3:19 PM, "rosenbergj" ***@***.***> wrote:
I'll try to make time to attempt it, but I'm really not a Ruby dev.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#38 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMFFnlCFiY17QKsqbF2YrIdvZAwU7uFks5rx9nngaJpZM4NDmSi>
.
|
any update? |
Sorry, things got a bit busier than I planned, looking into this. Most of my systems I work on outside of my job are FreeBSD or DragonFly BSD based, so I'm adding support for that at the same time as cleaning the code around this a little and addressing the issue. I'll update more with progress soon. |
I've submitted this for review as #43 . I should probably add unit tests, but to do that I should probably fix the rest of the tests as almost all of the tests currently fail. |
I'm closing this in favour of #43 |
calling the cpan provider on a module that has a non-standard or missing version in cpan will error.
Two examples I found were Log::Dispatch::Gelf (version is "v1.3.0", including that leading "v") and "Graph::Directed" (no version is defined).
Current behavior is an error like this:
It seems that a cleaner option would be to either print a notice (something like "could not upgrade: CPAN version could not be determined"), or to silently fail to upgrade.
Also, I think better parsing of the cpan version might help (stripping initial [a-zA-Z]*, or successfully matching a versionless installed module to an undefined version of cpan), and would eliminate the errors in both of these examples.
The text was updated successfully, but these errors were encountered: