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

Bazelisk corrupts the bazel installation if it's run multiple times concurrently #436

Open
jfirebaugh opened this issue Mar 9, 2023 · 1 comment
Labels
P2 We'll consider working on this in future. (Assignee optional) type:bug Something isn't working

Comments

@jfirebaugh
Copy link

I was trying to use Bazelisk in a CI setup where multiple CI agents run on a single instance. I observed the following error when multiple bazelisk processes attempt to install bazel concurrently:

2023/03/09 02:31:53 Downloading https://releases.bazel.build/6.0.0/release/bazel-6.0.0-linux-x86_64...
Opening zip "/var/lib/buildkite-agent/.cache/bazelisk/downloads/bazelbuild/bazel-6.0.0-linux-x86_64/bin/bazel (deleted)": open(): No such file or directory
FATAL: Failed to open '/var/lib/buildkite-agent/.cache/bazelisk/downloads/bazelbuild/bazel-6.0.0-linux-x86_64/bin/bazel (deleted)' as a zip file: (error: 2): No such file or directory
@fweikert fweikert added the type:bug Something isn't working label Jan 19, 2024
@fweikert fweikert added the P2 We'll consider working on this in future. (Assignee optional) label Feb 6, 2024
@dhirajtobii
Copy link

@fweikert Do we have any solution or work around to avoid this crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants