Rules for manipulation of various packaging.
Rules
pkg_zip_impl
Example usage (generated)
load("@rules_pkg//pkg/private/zip:zip.bzl", "pkg_zip_impl")
pkg_zip_impl(
# A unique name for this target.
name = "",
# output file name
out = "",
)
name
A unique name for this target.
mode
The default mode for all files in the archive.
out
output file name. Default: name + ".zip".
package_dir
The prefix to add to all all paths in the archive.
package_file_name
See Common Attributes
package_variables
See Common Attributes
private_stamp_detect
srcs
List of files that should be included in the archive.
stamp
Enable file time stamping. Possible values:
strip_prefix
timestamp
Time stamp to place on all files in the archive, expressed as seconds since the Unix Epoch, as per RFC 3339. The default is January 01, 1980, 00:00 UTC.
Due to limitations in the format of zip files, values before Jan 1, 1980 will be rounded up and the precision in the zip file is limited to a granularity of 2 seconds.