-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
hack/update-bazel.sh fails with several complaints about "too few values in struct initializer" #60447
Comments
@kubernetes/sig-contributor-experience-bugs |
Ah, there's another bug for this, this is being fixed. #60439 (same issue, verify uses update internally) |
Any workaround? |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. bzl: fix update-bazel.sh pickup bazelbuild/bazel-gazelle@a85b63b fixes kubernetes#60439, fixes kubernetes#60447 we need to vendor gazelle. ```release-note NONE ```
/reopen It looks like the 1.8 and 1.9 release branches are broken for the same reason, but the fix is a bit less trivial, since we can't just use the latest gazelle, since this would require a huge mass of changes to the BUILD files. (Luckily, 1.7 doesn't use gazelle, so it's unaffected.) Some additional background: gazelle doesn't vendor bazelbuild/buildtools, though it does have a bazel dependency on a particular version. As a result, An additional complication for the 1.8 and 1.9 branches is that we're installing gazelle from bazelbuild/rules_go instead of bazelbuild/bazel-gazelle. Various options under consideration to fix these release branches:
Anyone have a better idea? |
@ixdy: you can't re-open an issue/PR unless you authored it or you are assigned to it. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
@ixdy: you can't re-open an issue/PR unless you authored it or you are assigned to it. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I think we should start with 2) to get things fixed and then solve 1) for the current branch and come back to the release branches if we think we still need that. |
@BenTheElder can you describe 1) and 2) here? |
I ended up implementing option 3 in #60522; it wasn't quite as gross as I thought it'd be. LMK what you think. |
@mikedanese 1) and 2) from the bullets in #60447 (comment) |
ahh, thanks. |
many thanks... would the same fix work in release-1.7 and release-1.8? trying to get those in shape as well |
@liggitt PRs are out for 1.8 and 1.9. The same thing would work for 1.7 AFAIK |
Automatic merge from submit-queue. hack: when installing gazelle, checkout older version of buildtools **What this PR does / why we need it**: #60522, but for the 1.8 release branch. This fixes `hack/verify-bazel.sh` by ensuring we use a compatible version of bazelbuild/buildtools when installing gazelle. This is basically the hacky third option on #60447 (comment). **Release note**: ```release-note NONE ``` fixes #60482 /assign @BenTheElder @mikedanese /cc @cblecker
Automatic merge from submit-queue. hack: when installing gazelle, checkout older version of buildtools **What this PR does / why we need it**: fixes `hack/verify-bazel.sh` by ensuring we use a compatible version of bazelbuild/buildtools when installing gazelle. This is basically the hacky third option on #60447 (comment). **Release note**: ```release-note NONE ``` /assign @BenTheElder @mikedanese
/close this should be fixed everywhere, for now. |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
What you expected to happen:
I expected the update to run successfully.
How to reproduce it (as minimally and precisely as possible):
Checkout.
build/run.sh make
.hack/update-bazel.sh
Anything else we need to know?:
I get this in both master and release-1.9. I tested most carefully in release-1.9 (because I am working on a cherry-pick right now). In particular, I blew away the container and image I had used earlier for building. Before running
hack/update-bazel.sh
I established this state:Then I ran
build/run.sh make
--- which took a while but eventually completed. It left me this state:After that is when I ran the
hack/update-bazel.sh
that is exhibited at the start of this issue.Environment:
kubectl version
): Commit 77487e4 (current release-1.9)uname -a
): Linux ubu17dev 4.13.0-21-generic Update README.md #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxDocker 17.12.0-ce
The text was updated successfully, but these errors were encountered: