Rules for making .tar files.

Rules

pkg_tar_impl

Example usage (generated)

load("@rules_pkg//pkg/private/tar:tar.bzl", "pkg_tar_impl")

pkg_tar_impl(
    # A unique name for this target.
    name = "",
    out = "",
)

name

A unique name for this target.

build_tar

compressor

compressor_args

deps

empty_dirs

empty_files

extension

files

include_runfiles

mode

modes

mtime

out

owner

ownername

ownernames

owners

package_dir

Prefix to be prepend to all paths written.

package_dir_file

package_file_name

See Common Attributes

package_variables

See Common Attributes

portable_mtime

private_stamp_detect

remap_paths

srcs

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. @since(0.5.0)

    strip_prefix