-
Notifications
You must be signed in to change notification settings - Fork 385
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
kubernetes deps broken still #162
Comments
Er, sorry, the "still" is referencing bazel-contrib/rules_go#1356 which was fixed (but apparently not completely) by the k8s repos removing their BUILD files. |
(I assumed this was a gazelle generation bug, but maybe I should put this on rules_go?) |
Unfortunately, this is an issue caused by Bazel's handling of proto import paths. I've pinged bazelbuild/bazel#4544. Once that feature is in, I think we'll be able to resolve a lot of problems. There was a typo in the label you mentioned earlier. When I build So we get an error building Gazelle tries to interpret that import path the way Bazel would. It looks for a Gazelle's behavior here could be more intuitive. I don't think it makes sense to resolve local dependencies by following naming conventions anymore. Gazelle should report an error instead of providing a label which is almost certainly wrong. |
Okay, per my comment in bazelbuild/bazel#3867 (which, for the audience at home, we got redirected to from bazelbuild/bazel#4544), I worked around this by deleting all of the proto files in k8s.io/api and /apimachinery and pushing them up to forks I control. Blaaaaaaaah. |
FYI, I've been able to build the out-of-cluster example against client-go at the recent kubernetes-1.11.0 tag (v8.0.0 hasn't been tagged/released yet) which removes the BUILD files, by using |
Okay, so if you build
@io_k8s_client_go//kubernetes//typed/core/v1:go_default_library
directly, it builds fine, but if you depend on it in another library, it breaks with:I've pushed up a branch with a reproduction. It's the k8s branch on jmhodges/bazel_bugs https://github.com/jmhodges/bazel_bugs/tree/k8s
You can run it with
bazel build //foo:go_default_library
.The text was updated successfully, but these errors were encountered: