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

Use lock to fix issue with parallel invocations #638

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

hauserx
Copy link
Contributor

@hauserx hauserx commented Nov 21, 2024

Fixes issues with errors like under Linux:

Opening zip "/(...)/downloads/sha256/c97f(...)/bin/bazel (deleted)": open(): No such file or directory
FATAL: Failed to open '/(...)/downloads/sha256/c97f(...)/bin/bazel (deleted)' as a zip file: (error: 2): No such file or directory

and below ones under Windows:

could not download Bazel: failed to download bazel: failed to move (...) (...)\bin\bazel.exe: Access is denied.

See: #436

Tested using parallel_bazelisk_bug.go script under Linux and Windows that this change fixes issue.

Fixes issues with errors like under Linux:

```
Opening zip "/(...)/downloads/sha256/c97f(...)/bin/bazel (deleted)": open(): No such file or directory
FATAL: Failed to open '/(...)/downloads/sha256/c97f(...)/bin/bazel (deleted)' as a zip file: (error: 2): No such file or directory
```

and below ones under Windows:

```
could not download Bazel: failed to download bazel: failed to move (...) (...)\bin\bazel.exe: Access is denied.
```

See: bazelbuild#436

Tested using `parallel_bazelisk_bug.go` script under Linux and Windows
that this change fixes issue.
@fweikert
Copy link
Member

fweikert commented Dec 2, 2024

Thank you!

@fweikert fweikert merged commit 86ef884 into bazelbuild:master Dec 2, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants