-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
nogo: compilepkg: panic: 0: got 0 arguments but 1 type parameters when checking Go package that uses generics #3211
Comments
farhaven
added a commit
to farhaven/rules_go
that referenced
this issue
Jun 22, 2022
…Go >=1.18 This mirrors what golang.org/x/tools/go/packages does when loading packages. Should fix bazel-contrib#3211 (and probably bazel-contrib#3164 as well).
farhaven
added a commit
to farhaven/rules_go
that referenced
this issue
Jun 22, 2022
…=1.18 This mirrors what golang.org/x/tools/go/packages does when loading packages. Should fix bazel-contrib#3211 (and probably bazel-contrib#3164 as well).
farhaven
added a commit
to farhaven/rules_go
that referenced
this issue
Jun 23, 2022
…=1.18 This mirrors what golang.org/x/tools/go/packages does when loading packages. Should fix bazel-contrib#3211 (and probably bazel-contrib#3164 as well).
farhaven
added a commit
to farhaven/rules_go
that referenced
this issue
Jul 12, 2022
…=1.18 This mirrors what golang.org/x/tools/go/packages does when loading packages. Should fix bazel-contrib#3211 (and probably bazel-contrib#3164 as well).
farhaven
added a commit
to farhaven/rules_go
that referenced
this issue
Jul 14, 2022
…=1.18 This mirrors what golang.org/x/tools/go/packages does when loading packages. Should fix bazel-contrib#3211 (and probably bazel-contrib#3164 as well).
farhaven
added a commit
to farhaven/rules_go
that referenced
this issue
Jul 18, 2022
…=1.18 This mirrors what golang.org/x/tools/go/packages does when loading packages. Should fix bazel-contrib#3211 (and probably bazel-contrib#3164 as well).
farhaven
added a commit
to farhaven/rules_go
that referenced
this issue
Jul 18, 2022
…=1.18 This mirrors what golang.org/x/tools/go/packages does when loading packages. Should fix bazel-contrib#3211 (and probably bazel-contrib#3164 as well).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of rules_go are you using?
v0.33.0
What version of gazelle are you using?
v0.25.0
What version of Bazel are you using?
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Any other potentially useful information about your toolchain?
None that comes to mind.
What did you do?
Ran
nogo
with the nilness checker on a Go package that uses generics. This repository contains a reproducer.What did you expect to see?
I expected the build to pass and the nilness check to be successful.
What did you see instead?
Manually running the nilness checker works fine:
The good folks in
#tools
on the Gophers Slack suggested that the issue might be thatnogo
doesn't correctly populate the passes'TypesInfo
field.The text was updated successfully, but these errors were encountered: