-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
build fails with panic if nogo is enabled with nilness static analyzer #2480
Comments
I added logging to nogo and found out that nilness detects some impossible condition, however the file in which the issue was found is not included in the fileset.
Then I tried to figure out, which file contains the issue. I compiled the static analyzer which only includes nilness.
A executed this binary agains the the openapi3 package https://github.com/getkin/kin-openapi/tree/v0.8.0/openapi3 and indeed the analyzer finds 2 issues, where one of them does not contain a correct path to the source code.
Looks like the analyzer I am using has a bug, but I don't think that because of this the build should fail with panic. |
Thanks for reporting. #2484 should fix the panic. As you've said, the root cause is that nilness checker isn't reporting a position for this error. I believe the upstream issue for that is golang/go#31008. |
What version of rules_go are you using?
v0.21.3
What version of gazelle are you using?
v0.20.0
What version of Bazel are you using?
1.2.1
Does this issue reproduce with the latest releases of all the above?
yes
What operating system and processor architecture are you using?
Darwin amd64
What did you do?
or more specifially
What did you expect to see?
Build completed successfully
What did you see instead?
The text was updated successfully, but these errors were encountered: