bazelbuild / bazelbuild/rules_pkg

Support for squashing multiple input directories in pkg_files

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

Description

If you have custom rules that generates a directory with `ctx.actions.declare_directory` you cannot squash them using pkg_files. By squashing I mean removing top directory specified by `ctx.actions.declare_directory`. This works with pkg_tar but not with the new pkg_files.

`strip_prefix` gives error right away saying it is not supported for TreeArtifacts. `renames` does not support multiple destination paths that are the same. This makes sense sometimes when you want to guarantee nothing is overwritten but it would be great to have an option to allow this behavior.

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.