bazelbuild / bazelbuild/rules_pkg

Allow permissions override of TreeArtifact `pkg_files` root directories (using `pkg_mkdirs`?)

Open
#507 4 comments 0 reactions 0 assignees View on GitHub
P2 pkg_filegroup tree-artifacts
Dominant language
Starlark
Stars
253
Forks
221
Avg merge
10h 33m
Merged PRs (30d)
1

Description

In some cases, we want to provide direct ownership and/or override the permissions of a TreeArtifact expanded in a package. While it is likely already possible to change permissions on directories inside TreeArtifacts using `pkg_mkdirs`, you can't change those on the root directory, as the packaging rules will complain about collisions.

While additional TreeArtifact magic could be supported in `pkg_files`, it seems that allowing `pkg_mkdirs` to collide with TreeArtifacts should be a valid choice.

This is at least a problem with `pkg_rpm`'s internal `pkg_filegroup` framework handler. It is likely present in the "common" one too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.