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 = "",
    out = "",
)

name

A unique name for this target.

mode

The default mode for all files in the archive.

out

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:

  • stamp = 1: Use the time of the build as the modification time of each file in the archive.
  • stamp = 0: Use an "epoch" time for the modification time of each file. This gives good build result caching.
  • stamp = -1: Control the chosen modification time using the --[no]stamp flag.

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.