You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up a WORKSPACE and a BUILD.bazel according to the instructions in buildifier/README.md, so that you can bazel run //:buildifier successfully.
Run it with a remote cache server. bazel run --remote_cache="grpc://${BAZEL_CACHE_HOST}:9092" --remote_download_minimal //:buildifier for some value of ${BAZEL_CACHE_HOST}.
If it wasn't already in the remote cache, do a bazel clean, and do bazel run --remote_cache="grpc://${BAZEL_CACHE_HOST}:9092" --remote_download_minimal //:buildifier again. The cache should be populated by now.
(For full disclosure, I'm using the bazelisk wrapper to start bazel here, and I believe it's bazel-remote running on the cache server.)
xargs: /home/chrvon/.cache/bazel/_bazel_chrvon/e8924209b57642c957efca185c7c7704/execroot/__main__/bazel-out/host/bin/external/com_github_bazelbuild_buildtools/buildifier/linux_amd64_stripped/buildifier: No such file or directory
Note
Without --remote_download_minimal it works.
The text was updated successfully, but these errors were encountered:
Strictly speaking, no remote execution is taking place here.
But it looks like you're right. It's a problem with the Bazel remote cache, and there's apparently already a bug report about it: bazelbuild/bazel#11920
How to reproduce:
WORKSPACE
and aBUILD.bazel
according to the instructions in buildifier/README.md, so that you canbazel run //:buildifier
successfully.bazel run --remote_cache="grpc://${BAZEL_CACHE_HOST}:9092" --remote_download_minimal //:buildifier
for some value of${BAZEL_CACHE_HOST}
.bazel clean
, and dobazel run --remote_cache="grpc://${BAZEL_CACHE_HOST}:9092" --remote_download_minimal //:buildifier
again. The cache should be populated by now.(For full disclosure, I'm using the
bazelisk
wrapper to startbazel
here, and I believe it'sbazel-remote
running on the cache server.)Expected result
Successful return code
0
, no error messages.Actual result
Return code
127
, indicating failure. Error message:xargs: /home/chrvon/.cache/bazel/_bazel_chrvon/e8924209b57642c957efca185c7c7704/execroot/__main__/bazel-out/host/bin/external/com_github_bazelbuild_buildtools/buildifier/linux_amd64_stripped/buildifier: No such file or directory
Note
Without
--remote_download_minimal
it works.The text was updated successfully, but these errors were encountered: