rules_pkg
rules_pkg copied to clipboard
Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
This fixes a regression at some point from 0.9.1 to 0.10.1, which caused `pkg_tar` to fail when `include_runfiles` was true and some of the sources had data dependencies that were...
# Motivation I need tool to set "max locked memory" ulimit for `mongos` inside Kubernetes environment. This tool need `etcap cap_sys_resource+ep` xattr on file. This PR allows set `xattr` on...
The attribute `include_runfiles = True` is useful for me since I would like to keep things organized as they are in workspace dir tree. However, I found the pkg_tar rule...
pkg_zip and cc_test do not seem to work when both targets are provided to a single Bazel invocation. It might seem odd to zip a cc_test, but we have existing...
We hold an engineering status meeting on the first Monday of every month at 10am USA East coast time. [VC link](https://meet.google.com/egx-ovzg-adx?authuser=0) Next meeting Jan. 8, 2024 (moved because of New...
There is a bug that is confusing most users of `pkg_tar` (like it did with me): the effects of using `strip_prefix.files_only()` and `strip_prefix.from_pkg()` work as advertised when using it with...
Example file tree ``` BUILD docs/BUILD docs/index.md docs/reference/index.md ``` **docs/BUILD** `filegroup(name = "docs", srcs = glob(["**/*"]))` **BUILD** ``` pkg_files( name = "share_doc", srcs = [ "//docs", ], strip_prefix = strip_prefix.from_pkg(),...
In trying to figure out the current status of the `strip_prefix = "."` bugs (#354, #82), I noticed a documentation PR that adjusted the docs for `strip_prefix` in v0.8.0 but...
There are significant performance issues with pkg_zip in a bazel environment (on Windows). We were finding when bazel was simultaneously packaging many zips, each one could take 45s instead of...
### Description of the problem / feature request: pkg_tar does not have an attribute that exposes the compresslevel argument for tarfile. The [default value](https://docs.python.org/2.7/library/tarfile.html#tarfile.open) for this argument is 9, which...