Skip to content

[7.1.0-1] FATAL: Failed to open '/usr/bin/bazel-real' as a zip file: (error: 5): Input/output error

Description:

I'm seeing the error message below since the update from 7.0.2 to 7.1.0.

file is invalid or corrupted (missing end of central directory record)
Opening zip "/usr/bin/bazel-real": Cannot find central directory
FATAL: Failed to open '/usr/bin/bazel-real' as a zip file: (error: 5): Input/output error

Additional info:

I see this on two different machines both updated today.

When I try switching the machines to have bazelisk from the AUR, which installs bazel 7.1.0 from head, things work as expected.

Steps to reproduce:

  1. Switch to a bazel workspace root
  2. Run bazel info
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information