[🐛 Bug]: Bazel fails to run when a different version is installed by brew
See original GitHub issueWhat happened?
I was trying to generate the atom for Get Text by using the following bazel command:
bazel build //javascript/atoms/fragments:get-text
But that failed with:
ERROR: The project you're trying to build requires Bazel 5.1.1 (specified in /Users/henrik/code/selenium/.bazelversion), but it wasn't found in /opt/homebrew/Cellar/bazel/5.3.0/libexec/bin.
Note that I have a newer version of Bazel installed which I assume should also work and that 5.1.1 is more or less the minimum required version?
How can we reproduce the issue?
On MacOS install `bazel` via `brew` and then run the above mentioned command to build the atom.
Relevant log output
ERROR: The project you're trying to build requires Bazel 5.1.1 (specified in /Users/henrik/code/selenium/.bazelversion), but it wasn't found in /opt/homebrew/Cellar/bazel/5.3.0/libexec/bin.
Bazel binaries for all official releases can be downloaded from here:
https://github.com/bazelbuild/bazel/releases
You can download the required version directly using this command:
(cd "/opt/homebrew/Cellar/bazel/5.3.0/libexec/bin" && curl -fLO https://releases.bazel.build/5.1.1/release/bazel-5.1.1-darwin-arm64 && chmod +x bazel-5.1.1-darwin-arm64)
Operating System
MacOS 12.6
Selenium version
Latest trunk
What are the browser(s) and version(s) where you see this issue?
Firefox 107
What are the browser driver(s) and version(s) where you see this issue?
geckodriver 0.31.0
Are you using Selenium Grid?
No
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
problem about installing bazel with homebrew - Stack Overflow
I do not want to install two javas in my mac. You have to, or remove the version you currently have. Bazel needs...
Read more >Having trouble installing bazel on Mac OS - Reddit
I am trying to set up protobufs on my Mac and seemingly Bazel needs to be installed. ... ERROR: No installed Bazel version...
Read more >Installing Bazel on Ubuntu
Step 1: Install required packages; Step 2: Run the installer ... the APT repository does not contain an arm64 release, and there is...
Read more >Installation | mediapipe - Google
If you run into a build error, please read Troubleshooting to find the solutions of several common build issues. Installing on macOS. Prework:...
Read more >Building Ray from Source — Ray 2.1.0 - the Ray documentation
brew update brew install wget # Install Bazel. ray/ci/env/install-bazel.sh ... pip install -e . --verbose # Add --user if you see a permission...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ok so you can probably close this issue.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.