bazelbuild / bazelbuild/rules_pkg
Executable mode is lost on executables added via tree to pkg_tar
Open
need more information
P3
- Dominant language
- Starlark
- Stars
- 253
- Forks
- 221
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
When we add a tree to pkg_tar via pkg_files, some files being executable and some not, the executable file modes are lost due to this line: https://github.com/bazelbuild/rules_pkg/blob/a56b1d9d339b70c01f92db74d62f4973a789f0fd/pkg/mappings.bzl#L258
pkg_tar has some code to carry-over executable modes from the underlying files, but this is only active when mode = None, and the above line results in mode *always* being set explicitly to a default value.
There is no other UI to allow control over executable mode for specific files in tree artifacts.
Contributor guide
Assessment
This issue has not been assessed yet.