Skip to content
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

Flake running bazel --version #2168

Open
UebelAndre opened this issue Jan 30, 2025 · 0 comments
Open

Flake running bazel --version #2168

UebelAndre opened this issue Jan 30, 2025 · 0 comments

Comments

@UebelAndre
Copy link
Contributor

https://buildkite.com/bazel/rules-rust-rustlang/builds/13858#0194b7db-e1b1-4f7e-a666-a8d610896a16

bazel --version
Traceback (most recent call last):
  File "/Users/buildkite/builds/bk-macos-arm64-0hc8/bazel/rules-rust-rustlang/bazelci.py", line 4527, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/buildkite/builds/bk-macos-arm64-0hc8/bazel/rules-rust-rustlang/bazelci.py", line 4495, in main
    execute_commands(
  File "/Users/buildkite/builds/bk-macos-arm64-0hc8/bazel/rules-rust-rustlang/bazelci.py", line 1231, in execute_commands
    PrepareRepoInCwd(True, initial_setup=True)
  File "/Users/buildkite/builds/bk-macos-arm64-0hc8/bazel/rules-rust-rustlang/bazelci.py", line 1216, in PrepareRepoInCwd
    run_bazel_version(bazel_binary)
  File "/Users/buildkite/builds/bk-macos-arm64-0hc8/bazel/rules-rust-rustlang/bazelci.py", line 2006, in run_bazel_version
    exit_code = execute_command([bazel_binary, "--version"], fail_if_nonzero=False)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/buildkite/builds/bk-macos-arm64-0hc8/bazel/rules-rust-rustlang/bazelci.py", line 2676, in execute_command
    return subprocess.run(
           ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: 'bazel'
🚨 Error: The command exited with status 1
^^^ +++
user command error: exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant