You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK I looked at this more closely and it looks like this code path is only ever done as a fallback, so it's not actually resulting in warnings in the normal case. The warnings I was seeing my build are due to the cc_library stuff that's built in to bazel and is fixed by bazelbuild/bazel#16414.
Either the fallback should be in place for MacOS and Linux, or for neither. I'm going to close this.
Note I reported a similar issue for
cc_library
here.If we apply the same fix, then it would just be to remove this line:
https://github.com/bazelbuild/rules_go/blob/d517cd9bec43f0541b421315fe633cdd0f204270/go/tools/builders/cgo2.go#L215
What version of rules_go are you using?
v0.34.0
What version of gazelle are you using?
v0.26.0
What version of Bazel are you using?
5.3.1
Does this issue reproduce with the latest releases of all the above?
yes
What operating system and processor architecture are you using?
macOS 12.6, arm64
Any other potentially useful information about your toolchain?
XCode Command Line tools v14
What did you do?
Build anything that depends on CGo
What did you expect to see?
No warnings
What did you see instead?
The text was updated successfully, but these errors were encountered: