-
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
Build fails when updating gazelle from 0.25 to 0.26 #1290
Comments
Was there any error printed before this? I ran into the same issue, and the full error was:
which I resolved by updating skylib. |
Fix from @illicitonion solved problem, but maybe we'are should update skylib in gazelle itself? |
Same issue from 0.25 -> 0.27 |
In my understanding, this issue cannot be resolved in Gazelle since it's just a victim of how Bazel handles (in this case, transient) dependencies. Gazelle 0.25.0 and newer requires bazelbuild/bazel-skylib@df3c9e2 (a commit prior to the In my case, it's Protobuf v3.14.0 which requires Skylib 1.0.2. You can check the actual Skylib version by running this: cat "$(bazel info output_base)/external/bazel_skylib/version.bzl" If it's not what Gazelle expects, then it's the problem. There are three ways to solve this problem on the affected project's side:
|
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
see bazel-contrib/bazel-gazelle#1290 (comment) Signed-off-by: Paul Meyer <[email protected]>
What version of gazelle are you using?
0.25, trying to upgrade to 0.26
What version of rules_go are you using?
0.33
What version of Bazel are you using?
5.0.0-homebrew
Does this issue reproduce with the latest releases of all the above?
When building with 0.25 (nogo disabled), it all works fine. Trying with 0.26 (also nogo disabled), running
returns:
What operating system and processor architecture are you using?
Mac M1, Big Sur
What did you do?
Tried to upgrade gazelle, ultimately to resolve another problem related to nogo and go1.18 (see bazel-contrib/rules_go#3212)
What did you expect to see?
Success
What did you see instead?
Failure 🤷♂️
The text was updated successfully, but these errors were encountered: