bazel-contrib / bazel-contrib/bazel-lib
[Bug]: write_source_files does not copy file permissions
- Dominant language
- Starlark
- Stars
- 182
- Forks
- 134
- Avg merge
- 1d 46m
- Merged PRs (30d)
- 1
Description
### What happened?
write_source_files does not copy files with their permissions
### Version
Development (host) and target OS/architectures:
Output of `bazel --version`:
Version of the Aspect rules, or other relevant rules from your
`WORKSPACE` or `MODULE.bazel` file:
Language(s) and/or frameworks involved:
### How to reproduce
```shell
Create an executable file with `touch cmd.sh && chmod +x cmd.sh` and
copy the file with write_source_files and check if file
is still executable `([ -x ./.apko/range.sh ] && echo "executable") || echo "not executable"`
```
### Any other information?
_No response_
Contributor guide
Research direction
Start by locating the implementation of write_source_files and reproduce the issue with the provided shell commands: create cmd.sh, make it executable, and copy it. Done means the copied file remains executable and the reproduction check reports "executable".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100