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
WARNING strconv.ParseInt on kernel with LOCALVERSION set #3628
Comments
I've tagged this as helpwanted - it should be a reasonably easy fix if someone wants to take a stab at it. It would be an excellent first foray into Go, too. Just be sure to comment here if you're planning to work on it and we'll be happy to help with any issues you might run into! |
Indeed, I'm not a Go programmer (yet) but I do not fear Go or coding. I haven't had time to look yet where is the flavour used (seems that's what it's called in the code) and what could be possible backwards-compatibility issues. Current cases must stay but should we also allow additional separators ( |
I think it's only used for feature/bug compatibility comparisons, so stripping any non-numeric prefix should be appropriate behavior. |
Hope I didn't step on your toes, @rla -- I've been looking to get my feet wet in docker and real-world go, and this seemed like an easy fix, so I just went for it. @tianon, the easiest thing to do seemed to be just ignoring the kernel "flavor" entirely. It didn't seem to be used anywhere, although I haven't been using docker for very long so perhaps I missed something. |
It's included in the output of |
Gotcha. I'll define "flavor" as anything that comes after the minor version number in the string and print it verbatim. I'll also use Sscanf like you mention in the PR, 'cause that'll be way easier! |
@chazomaticus, no problems. I'm happy that this gets fixed! |
I believe this is fixed from #3695. Not sure if it's still open for any reason other than that I forgot to include the magic "fixes #..." text in the PR. |
Indeed, thanks! |
So far this has been reported and fixed for the special cases only:
-
;.
Today I ran (0.7.5) on a kernel with not LOCALVERSION separator (with uname
3.12.8tag
) where tag is arbitrary non-integer word. This will give warning:There is nothing in the kernel compilation process that requires LOCALVERSION to be prefixed/separated with
.
or-
(a good convention but not always done).The text was updated successfully, but these errors were encountered: