Skip to content

Instantly share code, notes, and snippets.

@prednaz
Last active March 28, 2024 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prednaz/a940519ce07ceb5d13df392a7d6b9dfb to your computer and use it in GitHub Desktop.
Save prednaz/a940519ce07ceb5d13df392a7d6b9dfb to your computer and use it in GitHub Desktop.

executing commands exactly as instructed.

[nix develop:~/tweag]$ git clone https://github.com/bazelbuild/bazel-central-registry.git
Cloning into 'bazel-central-registry'...
remote: Enumerating objects: 12960, done.
remote: Counting objects: 100% (1721/1721), done.
remote: Compressing objects: 100% (884/884), done.
remote: Total 12960 (delta 1102), reused 1281 (delta 837), pack-reused 11239
Receiving objects: 100% (12960/12960), 2.43 MiB | 2.10 MiB/s, done.
Resolving deltas: 100% (7091/7091), done.

[nix develop:~/tweag]$ cd bazel-central-registry/

[nix develop:~/tweag/bazel-central-registry]$ bazel --version
bazel 7.0.2- (@non-git)

[nix develop:~/tweag/bazel-central-registry]$ cat .bazelversion 
7.0.2

[nix develop:~/tweag/bazel-central-registry]$ bazel run //tools:add_module
Starting local Bazel server and connecting to it...
INFO: Repository rules_python~0.27.1~pip~pip_311_pyyaml instantiated at:
  <builtin>: in <toplevel>
Repository rule whl_library defined at:
  /home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1/python/pip_install/pip_repository.bzl:744:30: in <toplevel>
ERROR: An error occurred during the fetch of repository 'rules_python~0.27.1~pip~pip_311_pyyaml':
   Traceback (most recent call last):
        File "/home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1/python/pip_install/pip_repository.bzl", line 605, column 13, in _whl_library_impl
                fail("whl_library %s failed: %s (%s) error code: '%s'" % (rctx.attr.name, result.stdout, result.stderr, result.return_code))
Error in fail: whl_library rules_python~0.27.1~pip~pip_311_pyyaml failed:  (src/main/tools/process-wrapper-legacy.cc:80: "execvp(/home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1~python~python_3_11_x86_64-unknown-linux-gnu/bin/python3, ...)": No such file or directory
) error code: '1'
ERROR: <builtin>: fetching whl_library rule //:rules_python~0.27.1~pip~pip_311_pyyaml: Traceback (most recent call last):
        File "/home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1/python/pip_install/pip_repository.bzl", line 605, column 13, in _whl_library_impl
                fail("whl_library %s failed: %s (%s) error code: '%s'" % (rctx.attr.name, result.stdout, result.stderr, result.return_code))
Error in fail: whl_library rules_python~0.27.1~pip~pip_311_pyyaml failed:  (src/main/tools/process-wrapper-legacy.cc:80: "execvp(/home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1~python~python_3_11_x86_64-unknown-linux-gnu/bin/python3, ...)": No such file or directory
) error code: '1'
ERROR: no such package '@@rules_python~0.27.1~pip~pip_311_pyyaml//': whl_library rules_python~0.27.1~pip~pip_311_pyyaml failed:  (src/main/tools/process-wrapper-legacy.cc:80: "execvp(/home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1~python~python_3_11_x86_64-unknown-linux-gnu/bin/python3, ...)": No such file or directory
) error code: '1'
ERROR: /home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1~pip~pip/pyyaml/BUILD.bazel:8:6: @@rules_python~0.27.1~pip~pip//pyyaml:pkg depends on @@rules_python~0.27.1~pip~pip_311_pyyaml//:pkg in repository @@rules_python~0.27.1~pip~pip_311_pyyaml which failed to fetch. no such package '@@rules_python~0.27.1~pip~pip_311_pyyaml//': whl_library rules_python~0.27.1~pip~pip_311_pyyaml failed:  (src/main/tools/process-wrapper-legacy.cc:80: "execvp(/home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1~python~python_3_11_x86_64-unknown-linux-gnu/bin/python3, ...)": No such file or directory
) error code: '1'
ERROR: Analysis of target '//tools:add_module' failed; build aborted: Analysis failed
INFO: Elapsed time: 5.673s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target
FAILED: 
    Fetching repository @@bazel_tools~cc_configure_extension~local_config_cc; starting

[nix develop:~/tweag/bazel-central-registry]$ ls -l /home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1~python~python_3_11_x86_64-unknown-linux-gnu/bin/python3
lrwxrwxrwx 1 rednaz users 10 Mar 28 14:32 /home/rednaz/.cache/bazel/_bazel_rednaz/9a91d90e3658d34f6e1232446b8581fd/external/rules_python~0.27.1~python~python_3_11_x86_64-unknown-linux-gnu/bin/python3 -> python3.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment