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

Executable mode is lost on executables added via tree to pkg_tar #847

Open
peakschris opened this issue Apr 8, 2024 · 1 comment
Open
Labels
need more information P3 An issue that we are not working on but will review quarterly

Comments

@peakschris
Copy link

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:

out_attributes.setdefault("mode", "0644")

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.

@aiuto aiuto added P3 An issue that we are not working on but will review quarterly need more information labels Apr 16, 2024
@aiuto
Copy link
Collaborator

aiuto commented Apr 16, 2024

Have you tried the "attributes" setting on pkg_files. https://bazelbuild.github.io/rules_pkg/latest.html#pkg_files-attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more information P3 An issue that we are not working on but will review quarterly
Projects
None yet
Development

No branches or pull requests

2 participants