bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
214 stars 167 forks source link

pkg_tar: load attributes for TreeArtifacts #789

Open novas0x2a opened 7 months ago

novas0x2a commented 7 months ago

This change teaches pkg_tar to reinvoke file_attributes for each individual file in a TreeArtifact; this function is used to load the attributes passed via pkg_tar arguments (like mode). Before this change, there's no way to set individual attributes for files in a TreeArtifact.

This attempts to maintain the previous behavior of intermediate dirs being 0o775, unless a custom mode is passed to override it.

novas0x2a commented 6 months ago

Any updates?

aiuto commented 4 months ago

Sorry for the last response. I was unavailable from Jan 10 until about now. Catching up on things during March.