Skip to content

Commit

Permalink
fix: expose tar_lib as public (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn authored Dec 8, 2023
1 parent b1c342a commit a219f52
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 3 deletions.
55 changes: 55 additions & 0 deletions docs/tar.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions lib/tar.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ TODO:

load("@bazel_skylib//lib:types.bzl", "types")
load("@bazel_skylib//rules:write_file.bzl", "write_file")
load("//lib/private:tar.bzl", "tar_lib", _tar = "tar")
load("//lib/private:tar.bzl", _tar = "tar", _tar_lib = "tar_lib")

mtree_spec = rule(
doc = "Create an mtree specification to map a directory hierarchy. See https://man.freebsd.org/cgi/man.cgi?mtree(8)",
implementation = tar_lib.mtree_implementation,
attrs = tar_lib.mtree_attrs,
implementation = _tar_lib.mtree_implementation,
attrs = _tar_lib.mtree_attrs,
)

tar_rule = _tar

tar_lib = _tar_lib

def tar(name, mtree = "auto", **kwargs):
"""Wrapper macro around [`tar_rule`](#tar_rule).
Expand Down

0 comments on commit a219f52

Please sign in to comment.