-
Notifications
You must be signed in to change notification settings - Fork 263
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
Installation with bazel 6.0.0 #221
Comments
I think .bazelversion makes sense. I reproduced myself on Mac too. We also need to figure out why it is not working with Bazel 6. |
Actually I spoke too soon. We have an issue with our CI if we set bazel to a fixed version. |
Needs to have the bazel version bumped past: bazelbuild/bazel@01314ce Mitigation for folks stuck here:
Note -- using head failed for an unrelated reason:
|
I have the same issue with Bazel 6.0.0 on Ubuntu 22.04:
|
Suggests adding `--java_language_version` and `--tool_java_language_version` to .bazelrc. Context: I just spent three days trying to build copybara in an external workspace and kept getting the following error (which is also mentioned in google#221 ): ``` external/com_github_google_copybara/java/com/google/copybara/onboard/core/AskInputProvider.java:117: error: cannot find symbol var unused = input.convert(s, resolver); ^ symbol: class var location: class Mode external/com_github_google_copybara/java/com/google/copybara/onboard/core/InputProviderResolverImpl.java:60: error: cannot find symbol var unused = generator.consumes(); ^ symbol: class var location: class InputProviderResolverImpl ``` I realized that I needed to update my .bazelrc only after combing through the changes trying to find a clue as to how to fix the issue. I'm pretty new to bazel external repositories, having mostly worked with blaze and Chromium's GN, but I thought mentioning this in the docs could help other developers starting with bazel. If the fix is too obvious, feel free to ignore :)
I was using copybara by building binary with bazel and have used bazelisk for a version management.
However, from yesterday, as releasing of bazel 6.0.0, the bazelisk on my local starts to use 6.0.0 and fails when building copybara binary.
It seems one of the thirdparty is not working well with new release of bazel.
Current workaround would be using
USE_BAZEL_VERSION=5.x.x bazel build //java/com/google/copybara:copybara_deploy.jar
How about adding
.bazelversion
in this repo and specify the recommended version in the file for bazel users?https://github.com/bazelbuild/bazelisk#how-does-bazelisk-know-which-bazel-version-to-run
The text was updated successfully, but these errors were encountered: