-
Notifications
You must be signed in to change notification settings - Fork 84
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
Fix or update build files when syncing #49
Comments
Just to make sure we are talking about the same thing: this is about using client-go in an external project that builds with bazel? |
Yep, that's what we're talking about. (I'm a non-Googler who is trying to do this) |
My first take was that we hadn't encountered this issue before because most kubernetes extensions use go vendoring, and gazelle generally fixes the But then I read https://github.com/kubernetes/client-go/blob/d902e7da4bfa28d901dca2cb81b76e40ee7703ae/INSTALL.md and learned that it's recommended you I guess one approach which would fix this for bazel would be to add the necessary dependencies to the bazel |
as @jmhodges points out in bazel-contrib/rules_go#1356, it's also a bit weird that we publish maybe we should at least remove the |
Without deeper understanding of bazel, removing the BUILD files sounds fine. |
Would love to see that BUILD file deletion happen! |
#50 needs a review. https://github.com/sttts/client-go is the output of the bot with that patch. |
A build failure was originally reported in bazel-contrib/rules_go#1356. It appears that Bazel BUILD files in
api
,apimachinery
, andclient-go
refer to non-existent packages.Steps to reproduce
Analysis
The BUILD file for the package
@io_k8s_client_go//kubernetes/typed/core/v1
refers to rules in//vendor/k8s.io/...
. That directory doesn't exist in this repository.I suspect this bot may have copied the source files from k/k without updating the build files. Not sure what the right answer is. If the bot removes build files during sync, it may be possible to regenerate them correctly with Gazelle via
go_repository
. If the bot updates build files using Gazelle during sync, all dependencies will need to be vendored or declared using external repositories in WORKSPACE.The text was updated successfully, but these errors were encountered: