-
-
Notifications
You must be signed in to change notification settings - Fork 667
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
the default linter "composites" no longer works in the latest rules_go version #4194
Comments
I'm not familiar with that linter. Could you share a reproducer or run a |
this linter needs to read struct defined by some other package. the linter still works in @fmeum this is a unit test I used to test the linter, does it work for the reproduction purpose?
|
This only affect the workspace mode but not bzlmod. After bisecting, the culprit is found to be #4167. Here is the repro using the example above:
|
Looks like this change was the root cause: a1a0b60#diff-cf482d27eedc3aeb34c25f11101932cca853e70abec5ee2311159f181110bb44L16 The issue disappear if I explicitly pass Changing tests in #4195 to cover the issue |
@linzhp Thanks for reproducing this, the linked part of my change clearly makes no sense: nogo will only run within rules_go, not the main repo, by default. |
What version of rules_go are you using?
https://github.com/bazel-contrib/rules_go/releases/tag/v0.51.0-rc2
What version of gazelle are you using?
What version of Bazel are you using?
Build label: 7.3.1
Does this issue reproduce with the latest releases of all the above?
yes
What operating system and processor architecture are you using?
ubuntu, x86_64
Any other potentially useful information about your toolchain?
What did you see instead?
Take any example that previously failed the composites linter (which checks that we should use keyed field if the struct is defined by other packages), it will no longer alarm now.
The text was updated successfully, but these errors were encountered: