Executable http_file is not runnable
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
> ATTENTION! Please read and follow:
> - if this is a _question_ about how to build / test / query / deploy using Bazel, or a _discussion starter_, send it to bazel-discuss@googlegroups.com
> - if this is a _bug_ or _feature request_, fill the form below as best as you can.
### Description of the problem / feature request:
Files downloaded using `http_file` and marked with `executable = True` cannot be run using `bazel run`.
### Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Add the following to the WORKSPACE file:
```
http_file(
name = "buildifier",
executable = True,
sha256 = "069a03fc1fa46135e3f71e075696e09389344710ccee798b2722c50a2d92d55a",
urls = [
"https://github.com/bazelbuild/buildtools/releases/download/4.0.1/buildifier",
],
)
```
Run buildifier using `bazel run @buildifier//file`, and the following error occurs:
```
ERROR: Cannot run target @buildifier//file:file: Not executable
```
### What operating system are you running Bazel on?
Ubuntu 20.04 x86_64
### What's the output of `bazel info release`?
release 4.1.0
### Have you found anything relevant by searching the web?
https://github.com/bazelbuild/bazel/issues/5449
Contributor guide
Assessment
This issue has not been assessed yet.